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

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

[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: default avatarPatrick Mochel <mochel@digitalimplant.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 63c4f204
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)