The patch titled driver core fixes: device_register() retval check in platform.c has been removed from the -mm tree. Its filename was driver-core-fixes-device_register-retval-check-in.patch This patch was dropped because for the second time Greg has ignored this patch and merged other stuff which trashed it ------------------------------------------------------ Subject: driver core fixes: device_register() retval check in platform.c From: Cornelia Huck <cornelia.huck@xxxxxxxxxx> Check the return value of device_register() in platform_bus_init(). Signed-off-by: Cornelia Huck <cornelia.huck@xxxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/base/platform.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff -puN drivers/base/platform.c~driver-core-fixes-device_register-retval-check-in drivers/base/platform.c --- a/drivers/base/platform.c~driver-core-fixes-device_register-retval-check-in +++ a/drivers/base/platform.c @@ -563,8 +563,15 @@ EXPORT_SYMBOL_GPL(platform_bus_type); int __init platform_bus_init(void) { - device_register(&platform_bus); - return bus_register(&platform_bus_type); + int error; + + error = device_register(&platform_bus); + if (error) + return error; + error = bus_register(&platform_bus_type); + if (error) + device_unregister(&platform_bus); + return error; } #ifndef ARCH_HAS_DMA_GET_REQUIRED_MASK _ Patches currently in -mm which might be from cornelia.huck@xxxxxxxxxx are driver-core-fixes-device_register-retval-check-in.patch driver-core-fixes-check-for-return-value-of-sysfs_create_link.patch driver-core-dont-ignore-bus_attach_device-retval.patch cpu-topology-consider-sysfs_create_group-return-value.patch git-s390.patch tty-switch-to-ktermios-sclp-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