[SCSI] 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)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 18 Feb 2010 17:06:39 +0000 (11:06 -0600)
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>

No differences found