Skip to content

Commit

Permalink
[PATCH] Driver core: Use klist_del() instead of klist_remove().
Browse files Browse the repository at this point in the history
Use klist_del() instead of klist_remove() when unregistering devices.
This will prevent a deadlock when executing a recursive unregister using
device_for_each_child().

Signed-off-by Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Patrick Mochel authored and Greg Kroah-Hartman committed Jun 30, 2005
1 parent 23d3d60 commit d62c0f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void device_del(struct device * dev)
struct device * parent = dev->parent;

if (parent)
klist_remove(&dev->knode_parent);
klist_del(&dev->knode_parent);

/* Notify the platform of the removal, in case they
* need to do anything...
Expand Down

0 comments on commit d62c0f9

Please sign in to comment.