driver-core: make sysdev_class_register check kobject_set_name return value
authorDave Young <hidave.darkstar@gmail.com>
Mon, 11 May 2009 06:18:55 +0000 (14:18 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:30:24 +0000 (21:30 -0700)
commit9227c47bbdd87f276e08ed17877cc1649f5ed10a
treeaf576b46ed9825573a11321db63c4038b4abcd9f
parentd9cd8f37855b012757818f31390e8f84db251c89
driver-core: make sysdev_class_register check kobject_set_name return value

sysdev_class_register should check the kobject_set_name return value.

Add the return value checking code.

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/sys.c