Skip to content

Commit

Permalink
[PATCH] Call klist_del() instead of klist_remove().
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
mochel@digitalimplant.org authored and Greg Kroah-Hartman committed Jun 20, 2005
1 parent 63c4f20 commit 0956af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0956af5

Please sign in to comment.