diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-03-03 11:27:25 +0000 | 
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-03-03 11:27:25 +0000 | 
| commit | c6ee60b7c8bbc78e3b1776b2820a7e7f95f8996a (patch) | |
| tree | 99b48ef0f5217fddc0aa897d9e60d95ace7da6ff /drivers/scsi/scsi_scan.c | |
| parent | 13298defe5323c7fdcac268f588d8d1090758fb8 (diff) | |
| parent | c499ec24c31edf270e777a868ffd0daddcfe7ebd (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
| -rw-r--r-- | drivers/scsi/scsi_scan.c | 16 | 
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 5acb83ca5ae..f9ecc3dea7d 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c @@ -752,8 +752,20 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags)  	transport_configure_device(&sdev->sdev_gendev); -	if (sdev->host->hostt->slave_configure) -		sdev->host->hostt->slave_configure(sdev); +	if (sdev->host->hostt->slave_configure) { +		int ret = sdev->host->hostt->slave_configure(sdev); +		if (ret) { +			/* +			 * if LLDD reports slave not present, don't clutter +			 * console with alloc failure messages +			 */ +			if (ret != -ENXIO) { +				sdev_printk(KERN_ERR, sdev, +					"failed to configure device\n"); +			} +			return SCSI_SCAN_NO_RESPONSE; +		} +	}  	/*  	 * Ok, the device is now all set up, we can  | 
