Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8731
b: refs/heads/master
c: b70d37b
h: refs/heads/master
i:
  8729: 7ced3db
  8727: 657326b
v: v3
  • Loading branch information
Alan Stern authored and James Bottomley committed Sep 10, 2005
1 parent a6c91f1 commit 66e0923
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f631b4be76355dc3bf49563c706a9fb938993bde
refs/heads/master: b70d37bf61f278f9d9adf17c52af6b2d0ae7800c
8 changes: 6 additions & 2 deletions trunk/drivers/scsi/scsi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,12 @@ static int scsi_probe_and_add_lun(struct scsi_target *starget,
out_free_sdev:
if (res == SCSI_SCAN_LUN_PRESENT) {
if (sdevp) {
scsi_device_get(sdev);
*sdevp = sdev;
if (scsi_device_get(sdev) == 0) {
*sdevp = sdev;
} else {
__scsi_remove_device(sdev);
res = SCSI_SCAN_NO_RESPONSE;
}
}
} else {
if (sdev->host->hostt->slave_destroy)
Expand Down

0 comments on commit 66e0923

Please sign in to comment.