From: Andreas Herrmann <aherrman@xxxxxxxxxx> [patch 4/4] zfcp: fix return code of zfcp_scsi_slave_alloc Change return code in slave_alloc to avoid irritating error message from scsi_alloc_sdev() when scsi stack tries target scan. Signed-off-by: Andreas Herrmann <aherrman@xxxxxxxxxx> diff -Nurp linux-2.6.15-rc3/drivers/s390/scsi/zfcp_scsi.c linux-2.6.x/drivers/s390/scsi/zfcp_scsi.c --- linux-2.6.15-rc3/drivers/s390/scsi/zfcp_scsi.c 2005-10-28 02:02:08.000000000 +0200 +++ linux-2.6.x/drivers/s390/scsi/zfcp_scsi.c 2005-12-01 01:18:54.000000000 +0100 @@ -179,7 +179,7 @@ zfcp_scsi_slave_alloc(struct scsi_device struct zfcp_adapter *adapter; struct zfcp_unit *unit; unsigned long flags; - int retval = -ENODEV; + int retval = -ENXIO; adapter = (struct zfcp_adapter *) sdp->host->hostdata[0]; if (!adapter) - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html