]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] zfcp: Fix error checking for ELS ADISC requests
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Wed, 2 Jul 2008 08:56:32 +0000 (10:56 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jul 2008 13:22:34 +0000 (08:22 -0500)
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>
drivers/s390/scsi/zfcp_fc.c

index 34c9b20ce4939e3918597f523887a4d9e8533bc0..5d9367d9a12d729527bef7b4bcdcf085498a23aa 100644 (file)
@@ -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;