[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:
Christoph Hellwig 2006-01-30 19:00:43 +01:00 committed by James Bottomley
parent 9f63bb73eb
commit 23f236ed27
1 changed files with 1 additions and 2 deletions

View File

@ -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;