Skip to content

Commit

Permalink
[SCSI] zfcp: Fix error checking for ELS ADISC requests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christof Schmitt authored and James Bottomley committed Jul 12, 2008
1 parent c57a39a commit 3968ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/scsi/zfcp_fc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3968ce8

Please sign in to comment.