mptsas: don't complain on bogus slave_alloc calls
Subsystems (2)
PATCH 1/1 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 <[email protected]>
drivers/message/fusion/mptsas.c +1 -2
@@ -301,9 +301,8 @@ }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;