mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
[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>
This commit is contained in:
parent
c57a39a45a
commit
3968ce800f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user