]> git.hungrycats.org Git - linux/commit
[PATCH] kobject_set_name - error handling
authorManeesh Soni <maneesh@in.ibm.com>
Tue, 11 May 2004 09:31:46 +0000 (02:31 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 11 May 2004 09:31:46 +0000 (02:31 -0700)
commitab7f733171c2c0a44689f89c2078e76631d32dd5
treec33a258a1ad97ba278ebea9a25cdb94928b83f0a
parente15f75b5b12dcb5665475dd12f1745ecd8c7bc43
[PATCH] kobject_set_name - error handling

1) kobject_set_name-cleanup-01.patch

This patch corrects the following by checking the reutrn code from
kobject_set_name().

bus_add_driver()
bus_register()
sys_dev_register()

o The following patch cleansup the kobject_set_name() users. Basically checking
  return code from kobject_set_name(). There can be error returns like -ENOMEM
  or -EFAULT from kobject_set_name() if the name length exceeds KOBJ_NAME_LEN.
drivers/base/bus.c
drivers/base/sys.c