The patch titled driver core fixes: bus_add_attrs() retval check has been added to the -mm tree. Its filename is driver-core-fixes-bus_add_attrs-retval-check.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: driver core fixes: bus_add_attrs() retval check From: Cornelia Huck <cornelia.huck@xxxxxxxxxx> Check return value of bus_add_attrs() in bus_register(). Signed-off-by: Cornelia Huck <cornelia.huck@xxxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/base/bus.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff -puN drivers/base/bus.c~driver-core-fixes-bus_add_attrs-retval-check drivers/base/bus.c --- a/drivers/base/bus.c~driver-core-fixes-bus_add_attrs-retval-check +++ a/drivers/base/bus.c @@ -744,11 +744,15 @@ int bus_register(struct bus_type * bus) klist_init(&bus->klist_devices, klist_devices_get, klist_devices_put); klist_init(&bus->klist_drivers, klist_drivers_get, klist_drivers_put); - bus_add_attrs(bus); + retval = bus_add_attrs(bus); + if (retval) + goto bus_attrs_fail; pr_debug("bus type '%s' registered\n", bus->name); return 0; +bus_attrs_fail: + kset_unregister(&bus->drivers); bus_drivers_fail: kset_unregister(&bus->devices); bus_devices_fail: _ Patches currently in -mm which might be from cornelia.huck@xxxxxxxxxx are driver-core-fixes-make_class_name-retval-check.patch driver-core-fixes-device_register-retval-check-in.patch driver-core-fixes-sysfs_create_link-retval-check-in.patch driver-core-fixes-bus_add_attrs-retval-check.patch driver-core-fixes-bus_add_device-cleanup-on-error.patch driver-core-fixes-device_add-cleanup-on-error.patch driver-core-fixes-device_create_file-retval-check-in.patch driver-core-fixes-sysfs_create_group-retval-in-topologyc.patch git-s390.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