Commit 23f236ed authored by Christoph Hellwig's avatar Christoph Hellwig Committed by James Bottomley
Browse files

[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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 9f63bb73
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;