Skip to content

Commit

Permalink
[SCSI] mptsas: don't complain on bogus slave_alloc calls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and James Bottomley committed Jan 31, 2006
1 parent 9f63bb7 commit 23f236e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/message/fusion/mptsas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 23f236e

Please sign in to comment.