Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d62c0f9f authored by Patrick Mochel's avatar Patrick Mochel Committed by Greg Kroah-Hartman
Browse files

[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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 23d3d602
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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...