From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christof Schmitt Subject: [patch 02/11] zfcp: Fix error checking for ELS ADISC requests Date: Wed, 02 Jul 2008 10:56:32 +0200 Message-ID: <20080702085947.559989000@de.ibm.com> References: <20080702085630.473635000@de.ibm.com> Return-path: Received: from mtagate8.de.ibm.com ([195.212.29.157]:8855 "EHLO mtagate8.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754045AbYGBJAb (ORCPT ); Wed, 2 Jul 2008 05:00:31 -0400 Content-Disposition: inline; filename=fix-els-adisc.diff Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James Bottomley Cc: linux-scsi@vger.kernel.org, linux-s390@vger.kernel.org, Christof Schmitt , Swen Schillig From: Christof Schmitt Correctly check the status for ELS ADISC requests. 0 means success. Signed-off-by: Christof Schmitt Signed-off-by: Swen Schillig --- drivers/s390/scsi/zfcp_fc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/s390/scsi/zfcp_fc.c 2008-06-27 18:07:26.000000000 +0200 +++ b/drivers/s390/scsi/zfcp_fc.c 2008-06-27 18:07:43.000000000 +0200 @@ -263,7 +263,7 @@ static void zfcp_fc_adisc_handler(unsign 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; --