From: Chris Wright Date: Fri, 8 Jun 2007 21:36:04 +0000 (-0700) Subject: fix net sysfs patch for 2.6.20, 2.6.20.14-rc2 X-Git-Tag: v2.6.20.14~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bad92122d527dd04421702c551345804087cc32;p=thirdparty%2Fkernel%2Fstable-queue.git fix net sysfs patch for 2.6.20, 2.6.20.14-rc2 --- diff --git a/review-2.6.20/net-fix-race-condition-about-network-device-name-allocation.patch b/review-2.6.20/net-fix-race-condition-about-network-device-name-allocation.patch index 9f8aebceeda..bd8ad4191d3 100644 --- a/review-2.6.20/net-fix-race-condition-about-network-device-name-allocation.patch +++ b/review-2.6.20/net-fix-race-condition-about-network-device-name-allocation.patch @@ -49,7 +49,7 @@ Signed-off-by: Chris Wright dev->destructor(dev); + + /* Free network device */ -+ kobject_put(&dev->dev.kobj); ++ kobject_put(&dev->class_dev.kobj); } out: @@ -75,10 +75,10 @@ Signed-off-by: Chris Wright void netdev_unregister_sysfs(struct net_device * net) { - class_device_del(&(net->class_dev)); -+ struct device *dev = &(net->dev); ++ struct class_device *dev = &(net->class_dev); + + kobject_get(&dev->kobj); -+ device_del(dev); ++ class_device_del(dev); } /* Create sysfs entries for network device. */