提交 d62c0f9f 编写于 作者: P Patrick Mochel 提交者: Greg Kroah-Hartman

[PATCH] Driver core: Use klist_del() instead of klist_remove().

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: NGreg Kroah-Hartman <gregkh@suse.de>
上级 23d3d602
...@@ -333,7 +333,7 @@ void device_del(struct device * dev) ...@@ -333,7 +333,7 @@ void device_del(struct device * dev)
struct device * parent = dev->parent; struct device * parent = dev->parent;
if (parent) if (parent)
klist_remove(&dev->knode_parent); klist_del(&dev->knode_parent);
/* Notify the platform of the removal, in case they /* Notify the platform of the removal, in case they
* need to do anything... * need to do anything...
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册