datapath: Fix read of uninitialized data.
authorBen Pfaff <blp@nicira.com>
Wed, 27 May 2009 16:09:54 +0000 (09:09 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 27 May 2009 16:09:54 +0000 (09:09 -0700)
commit583fce191c99609b61b88dd3ccb71354a8a053bf
tree100f6ea3690f9a3a1da408181325d6326499d661
parent2bbd77aaf5f3c031bc6d80a30e65676000bb7878
datapath: Fix read of uninitialized data.

Control jumps to the error_free_flow label to free a flow allocated with
kmem_cache_alloc(), but the sf_acts member of that flow has never been
initialized and thus flow_free() will pass uninitialized data to kfree().
Fix it by just freeing the flow itself.
datapath/datapath.c