]> err.no Git - linux-2.6/blobdiff - drivers/scsi/scsi_scan.c
[PATCH] md: remove a stray debugging printk.
[linux-2.6] / drivers / scsi / scsi_scan.c
index ad3a5b1424686cd4c3c192d07c0377c548ded325..2d3c4ac475f233d5cd723331dc117883fb28021d 100644 (file)
@@ -756,7 +756,8 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags)
         * register it and tell the rest of the kernel
         * about it.
         */
-       scsi_sysfs_add_sdev(sdev);
+       if (scsi_sysfs_add_sdev(sdev) != 0)
+               return SCSI_SCAN_NO_RESPONSE;
 
        return SCSI_SCAN_LUN_PRESENT;
 }