]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fix duplicate removal on error path in scsi_sysfs_add_sdev
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 12 Feb 2010 17:13:55 +0000 (12:13 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:28:38 +0000 (15:28 -0700)
commit0b5adb1a665d63a7da60a2b0b15df9a7e7ca5d1c
tree18490d0a010479dcba61bb63f6926ebefb62647d
parent2e4abe551532e10ebb19b7dc18de69ca1ea66ef7
fix duplicate removal on error path in scsi_sysfs_add_sdev

commit ee37e09d81a4acf328f68189af12f116401f8c0f upstream.

This patch (as1335) fixes a bug in scsi_sysfs_add_sdev().  Its callers
always remove the device if anything goes wrong, so it should never
remove the device.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi_sysfs.c