mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[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
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue