veth: Fix problems removing veth devices
authorJustin Pettit <jpettit@nicira.com>
Tue, 13 Apr 2010 22:53:37 +0000 (15:53 -0700)
committerJustin Pettit <jpettit@nicira.com>
Thu, 15 Apr 2010 03:53:15 +0000 (20:53 -0700)
commit5b9334be31c1992ddb6e14e8aea6413f00ddb1ab
tree24730ea89472ee4339f9438851431bfbd8c28a31
parent5de48440612252484f028d26f23d04ba57ce7ab9
veth: Fix problems removing veth devices

When a user tried to delete a veth device through sysfs, the driver
wasn't properly parsing the device name.  Also, it called
dev_get_by_name(), which increments a refcount on the device, but didn't
make a dev_put() before trying to delete it.
datapath/linux-2.6/compat-2.6/veth.c