forked from luck/tmp_suning_uos_patched
[SCSI] mptsas: don't complain on bogus slave_alloc calls
When people use the userspace scanning facilities on SAS hardware the LLDD gets bogus slave_alloc calls. Just fail those gracefully instead of printing a warning in mptsas and another one in the midlayer. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
9f63bb73eb
commit
23f236ed27
@ -304,9 +304,8 @@ mptsas_slave_alloc(struct scsi_device *sdev)
|
||||
}
|
||||
mutex_unlock(&hd->ioc->sas_topology_mutex);
|
||||
|
||||
printk("No matching SAS device found!!\n");
|
||||
kfree(vdev);
|
||||
return -ENODEV;
|
||||
return -ENXIO;
|
||||
|
||||
out:
|
||||
vtarget->ioc_id = vdev->ioc_id;
|
||||
|
Loading…
Reference in New Issue
Block a user