datapath: Fix VLAN-related kernel OOPS on XenServer.
authorBen Pfaff <blp@nicira.com>
Thu, 14 May 2009 18:20:10 +0000 (11:20 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 14 May 2009 18:20:10 +0000 (11:20 -0700)
commit8615ea2ee7ed1500bd4ba535f4ea3f9c2df43f6f
tree602df75ca8a40058a07b1df958b936072cc7743b
parentef4a656e73b3bf157519a8f6e239c0e5f54600a3
datapath: Fix VLAN-related kernel OOPS on XenServer.

In deleting internal ports (other than the local port) we were failing to
call dp_del_if_hook even though we had called dp_add_if_hook when we added
it.  This prevented the sysfs kobject from being released and caused the
wrong address to be passed to kfree.  The former could cause random
memory corruption; the latter may be benign since the address was still in
the same slab object.
datapath/datapath.c