Skip to content
Commit f8b5d070 authored by Alan Stern's avatar Alan Stern Committed by Herton Ronaldo Krzesinski
Browse files

fix duplicate removal on error path in scsi_sysfs_add_sdev

BugLink: http://bugs.launchpad.net/bugs/802383

commit ee37e09d

 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: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 11f5a437
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment