aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2008-07-02 04:56:32 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-12 09:22:34 -0400
commit3968ce800f45d8795ceb6f186c1efe420c98e1b0 (patch)
tree37c1fc83ee34f2830011879fa3a1dbe611b18751 /drivers/s390/scsi
parentc57a39a45a76bc8ecdd2c8a9bc7cf7be3ed73fe1 (diff)
[SCSI] zfcp: Fix error checking for ELS ADISC requests
Correctly check the status for ELS ADISC requests. 0 means success. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi')
-rw-r--r--drivers/s390/scsi/zfcp_fc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c
index 34c9b20ce493..5d9367d9a12d 100644
--- a/drivers/s390/scsi/zfcp_fc.c
+++ b/drivers/s390/scsi/zfcp_fc.c
@@ -263,7 +263,7 @@ static void zfcp_fc_adisc_handler(unsigned long data)
263 struct zfcp_port *port = adisc->els.port; 263 struct zfcp_port *port = adisc->els.port;
264 struct zfcp_ls_adisc_acc *ls_adisc = &adisc->ls_adisc_acc; 264 struct zfcp_ls_adisc_acc *ls_adisc = &adisc->ls_adisc_acc;
265 265
266 if (!adisc->els.status) { 266 if (adisc->els.status) {
267 /* request rejected or timed out */ 267 /* request rejected or timed out */
268 zfcp_erp_port_forced_reopen(port, 0, 63, NULL); 268 zfcp_erp_port_forced_reopen(port, 0, 63, NULL);
269 goto out; 269 goto out;