diff options
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r-- | drivers/scsi/scsi_scan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 4d273ceb1d09..9fa209097e3b 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
@@ -1216,6 +1216,7 @@ struct scsi_device *__scsi_add_device(struct Scsi_Host *shost, uint channel, | |||
1216 | if (!starget) | 1216 | if (!starget) |
1217 | return ERR_PTR(-ENOMEM); | 1217 | return ERR_PTR(-ENOMEM); |
1218 | 1218 | ||
1219 | get_device(&starget->dev); | ||
1219 | down(&shost->scan_mutex); | 1220 | down(&shost->scan_mutex); |
1220 | res = scsi_probe_and_add_lun(starget, lun, NULL, &sdev, 1, hostdata); | 1221 | res = scsi_probe_and_add_lun(starget, lun, NULL, &sdev, 1, hostdata); |
1221 | if (res != SCSI_SCAN_LUN_PRESENT) | 1222 | if (res != SCSI_SCAN_LUN_PRESENT) |