From: Patrick Mochel Date: Fri, 24 Jun 2005 15:39:33 +0000 (-0700) Subject: [PATCH] Driver core: Use klist_del() instead of klist_remove(). X-Git-Tag: v2.6.13-rc2~37^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d62c0f9fd2d3943a3eca85b490d86e1605000ccb;p=platform%2Fkernel%2Flinux-exynos.git [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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/core.c b/drivers/base/core.c index 86d79755..efe03a0 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -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...