[PATCH] sysfs: fix a kobject leak in sysfs_add_link on the error path
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Mar 2006 23:44:26 +0000 (15:44 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 21:42:59 +0000 (13:42 -0800)
commitb3229087c5e08589cea4f5040dab56f7dc11332a
tree5a9568e4d041370b453f6074015ff1081a045c26
parent832c57e9afa7a263bb2f8ee6d04d527ef6709aae
[PATCH] sysfs: fix a kobject leak in sysfs_add_link on the error path

As pointed out by Oliver Neukum.

Cc: Maneesh Soni <maneesh@in.ibm.com>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/symlink.c