odp-execute: Fix possible segfault.
authorAlex Wang <alexw@nicira.com>
Sat, 19 Oct 2013 00:27:51 +0000 (17:27 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 21 Oct 2013 22:54:19 +0000 (15:54 -0700)
commitc51876c3af8fb5ceb750cdde2b836083166e35e7
treee821bd894d87ac974d2d5f2b35e7617927fae918
parenta7a2d006baae4152d338bd0bb4de1687084b1b07
odp-execute: Fix possible segfault.

In current code, the odp_execute_actions() function does not check
the value of "userspace" function pointer before invoking it.  This
patch adds a check for it.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/odp-execute.c