diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-03-18 20:41:11 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-11 16:24:15 +0200 |
commit | 1821438a9b6a8454281ec2e151014709f641d2d5 (patch) | |
tree | feea275b7e2c94d995e92dcd86a6074ab1832978 /drivers/scsi/scsi_scan.c | |
parent | [SCSI] mptfusion: Bump version 03.04.15 (diff) | |
download | linux-1821438a9b6a8454281ec2e151014709f641d2d5.tar.xz linux-1821438a9b6a8454281ec2e151014709f641d2d5.zip |
[SCSI] don't reap targets upon device_add failure
This patch (as1358) fixes a bug in the error pathway of
scsi_target_add(). If registration fails, the target should not be
reaped. The reaping occurs later, when scanning is finished and all
the child devices are removed. The current code leaves an unbalanced
value in starget->reap_ref.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
0 files changed, 0 insertions, 0 deletions