Skip to contentSkip to conversation

mptsas: don't complain on bogus slave_alloc calls

PATCH New Christoph Hellwig 1 participant 1 message Jan 30, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

drivers/message/fusion/mptsas.c +1 -2
Index: linux-2.6/drivers/message/fusion/mptsas.c
===================================================================
@@ -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;