From foo@baz Tue Apr 9 12:12:43 2002 To: Greg KH Date: 24 Mar 2005 18:58:45 -08:00 From: mochel@digitalimplant.org Subject: [driver core] 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: Patrick Mochel Signed-off-by: Greg Kroah-Hartman diff -Nru a/drivers/base/dd.c b/drivers/base/dd.c --- a/drivers/base/dd.c 2005-04-05 10:51:53 -07:00 +++ b/drivers/base/dd.c 2005-04-05 10:51:53 -07:00 @@ -184,7 +184,7 @@ 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); device_detach_shutdown(dev);