aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2009-07-13 09:06:04 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-07-30 09:49:55 -0400
commit1e9b16430ff4fd09408a74342d6b8338228e2f70 (patch)
treeefb3b8ff2da7fc3a38b967441756d88631730dc3 /drivers/s390
parentacf7b86150701de105aa8307b4b3f9dc533c45bb (diff)
[SCSI] zfcp: Return -ENOMEM for allocation failures in zfcp_fsf
When a fsf_req or a qtcb cannot be allocated return -ENOMEM instead of -EIO. Reviewed-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index bbb7ef0b052d..c4eb62b32a32 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -722,7 +722,7 @@ static struct zfcp_fsf_req *zfcp_fsf_req_create(struct zfcp_adapter *adapter,
722 req = zfcp_fsf_alloc_qtcb(pool); 722 req = zfcp_fsf_alloc_qtcb(pool);
723 723
724 if (unlikely(!req)) 724 if (unlikely(!req))
725 return ERR_PTR(-EIO); 725 return ERR_PTR(-ENOMEM);
726 726
727 if (adapter->req_no == 0) 727 if (adapter->req_no == 0)
728 adapter->req_no++; 728 adapter->req_no++;