diff options
author | mochel@digitalimplant.org | 2005-03-25 03:58:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2005-06-21 00:15:19 +0200 |
commit | 0956af53afea290c5676c75249fc2c180d831375 (patch) | |
tree | 43ba929157462d22b6320a8924823a56cb292569 /drivers/base/dd.c | |
parent | [PATCH] Remove struct device::driver_list. (diff) | |
download | kernel-qcow2-linux-0956af53afea290c5676c75249fc2c180d831375.tar.gz kernel-qcow2-linux-0956af53afea290c5676c75249fc2c180d831375.tar.xz kernel-qcow2-linux-0956af53afea290c5676c75249fc2c180d831375.zip |
[PATCH] Call klist_del() instead of klist_remove().
- Can't wait on removing the current item in the list (the positive refcount *because*
we are using it causes it to deadlock).
Signed-off-by: Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/dd.c')
-rw-r--r-- | drivers/base/dd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 85042ada8a5b..159e0623a681 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -177,7 +177,7 @@ void device_release_driver(struct device * dev) sysfs_remove_link(&drv->kobj, kobject_name(&dev->kobj)); sysfs_remove_link(&dev->kobj, "driver"); - klist_remove(&dev->knode_driver); + klist_del(&dev->knode_driver); down(&dev->sem); if (drv->remove) |