diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-12-02 00:32:15 -0600 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-12-29 11:24:23 -0600 |
commit | ae15f80172d95f978b60d40408353943d5bc099b (patch) | |
tree | c520477e90c974e2d165187ba8ee3ad7ec8c7375 /drivers/scsi | |
parent | 2ff79d52d56eebcffd83e9327b89d7daedf1e897 (diff) | |
download | op-kernel-dev-ae15f80172d95f978b60d40408353943d5bc099b.zip op-kernel-dev-ae15f80172d95f978b60d40408353943d5bc099b.tar.gz |
[SCSI] libiscsi: handle init task failures.
Mgmt setup used to not fail so we did not have to check
the return value. Now with cxgb3i it can so this has us
pass up a error.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/libiscsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index ddf5397..7225b6e 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c @@ -475,8 +475,8 @@ static int iscsi_prep_mgmt_task(struct iscsi_conn *conn, } } - if (session->tt->init_task) - session->tt->init_task(task); + if (session->tt->init_task && session->tt->init_task(task)) + return -EIO; if ((hdr->opcode & ISCSI_OPCODE_MASK) == ISCSI_OP_LOGOUT) session->state = ISCSI_STATE_LOGGING_OUT; |