The patch titled driver core: handles kobject_uevent failure while device_add has been removed from the -mm tree. Its filename was driver-core-handles-kobject_uevent-failure-while-device_add.patch This patch was dropped because it had testing failures ------------------------------------------------------ Subject: driver core: handles kobject_uevent failure while device_add From: Dmitriy Monakhov <dmonakhov@xxxxx> Signed-off-by: Monakhov Dmitriy <dmonakhov@xxxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/base/core.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff -puN drivers/base/core.c~driver-core-handles-kobject_uevent-failure-while-device_add drivers/base/core.c --- a/drivers/base/core.c~driver-core-handles-kobject_uevent-failure-while-device_add +++ a/drivers/base/core.c @@ -714,8 +714,11 @@ int device_add(struct device *dev) goto PMError; if ((error = bus_add_device(dev))) goto BusError; - if (!dev->uevent_suppress) - kobject_uevent(&dev->kobj, KOBJ_ADD); + if (!dev->uevent_suppress) { + error = kobject_uevent(&dev->kobj, KOBJ_ADD); + if (error) + goto UeventError; + } bus_attach_device(dev); if (parent) klist_add_tail(&dev->knode_parent, &parent->klist_children); @@ -735,6 +738,9 @@ int device_add(struct device *dev) kfree(class_name); put_device(dev); return error; + + UeventError: + bus_remove_device(dev); BusError: device_pm_remove(dev); PMError: _ Patches currently in -mm which might be from dmonakhov@xxxxx are driver-core-handles-kobject_uevent-failure-while-device_add.patch driver-core-handle-sysfs_op-failure-while-device_add.patch git-libata-all.patch freevxfs-possible-null-pointer-dereference-fix.patch reiserfs-possible-null-pointer-dereference-during-resize.patch ext3-dirindex-error-pointer-issues.patch ext3-dirindex-error-pointer-issues-fix.patch floppy-handle-device_create_file-failure-while-init.patch splice-partial-write-handling-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html