LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] Device core: Remove dpm_sysfs_remove() from error path of device_add()
@ 2008-03-03 22:46 Rafael J. Wysocki
0 siblings, 0 replies; only message in thread
From: Rafael J. Wysocki @ 2008-03-03 22:46 UTC (permalink / raw)
To: Greg KH; +Cc: Alan Stern, Len Brown, LKML, Pavel Machek, pm list
Hi Greg,
The appended patch fixes a bug in the error path of device_add().
Please accept it for 2.6.25.
Thanks,
Rafael
---
From: Rafael J. Wysocki <rjw@sisk.pl>
Since device_pm_remove(dev) calls dpm_sysfs_remove(dev), it's
incorrect to call the latter after the former in the device_add()
error path.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
drivers/base/core.c | 1 -
1 file changed, 1 deletion(-)
Index: linux-2.6/drivers/base/core.c
===================================================================
--- linux-2.6.orig/drivers/base/core.c
+++ linux-2.6/drivers/base/core.c
@@ -839,7 +839,6 @@ int device_add(struct device *dev)
return error;
BusError:
device_pm_remove(dev);
- dpm_sysfs_remove(dev);
PMError:
if (dev->bus)
blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-03 22:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 22:46 [PATCH] Device core: Remove dpm_sysfs_remove() from error path of device_add() Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).