vport-capwap: Fix use-after-free on error path.
authorBen Pfaff <blp@nicira.com>
Fri, 21 Oct 2011 22:34:25 +0000 (15:34 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 21 Oct 2011 22:34:25 +0000 (15:34 -0700)
commitb59da960549140e495e0fdcff086a62ebcdf5287
tree5d1c7c67fb2dd5e6b679b9694de5917721cd9312
parent7257b535ab8e5fafd811c5f6788205eefdd44948
vport-capwap: Fix use-after-free on error path.

I originally meant just to fix the use of kfree_skb() instead of
consume_skb() on the success path, but then I realized that the failure
path returned an skb that it had just freed.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/vport-capwap.c