From: Christof Schmitt Date: Wed, 2 Jul 2008 08:56:32 +0000 (+0200) Subject: [SCSI] zfcp: Fix error checking for ELS ADISC requests X-Git-Tag: v2.6.27-rc1~1059^2~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3968ce800f45d8795ceb6f186c1efe420c98e1b0;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Swen Schillig Signed-off-by: James Bottomley --- diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index 34c9b20ce49..5d9367d9a12 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) struct zfcp_port *port = adisc->els.port; struct zfcp_ls_adisc_acc *ls_adisc = &adisc->ls_adisc_acc; - if (!adisc->els.status) { + if (adisc->els.status) { /* request rejected or timed out */ zfcp_erp_port_forced_reopen(port, 0, 63, NULL); goto out;