]> err.no Git - linux-2.6/commitdiff
[SCSI] mptsas: don't complain on bogus slave_alloc calls
authorChristoph Hellwig <hch@lst.de>
Mon, 30 Jan 2006 18:00:43 +0000 (19:00 +0100)
committerJames Bottomley <jejb@mulgrave.(none)>
Tue, 31 Jan 2006 20:40:01 +0000 (14:40 -0600)
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>
drivers/message/fusion/mptsas.c

index 90660bfa148cff0696eebc00ffec8dc549c62f68..2512d0e6155ede3b55f1996b13fe69b6b78eda0a 100644 (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;