Commit 8a4adf1c authored by Jing Huang's avatar Jing Huang Committed by James Bottomley

[SCSI] bfa: fix wrong arg to callback

This patch fixes the issue of passing wrong argument to callback function.
Signed-off-by: default avatarJing Huang <huangj@brocade.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent ba834582
...@@ -407,7 +407,7 @@ bfa_port_hbfail(void *arg) ...@@ -407,7 +407,7 @@ bfa_port_hbfail(void *arg)
*/ */
if (port->stats_busy) { if (port->stats_busy) {
if (port->stats_cbfn) if (port->stats_cbfn)
port->stats_cbfn(port->dev, BFA_STATUS_FAILED); port->stats_cbfn(port->stats_cbarg, BFA_STATUS_FAILED);
port->stats_cbfn = NULL; port->stats_cbfn = NULL;
port->stats_busy = BFA_FALSE; port->stats_busy = BFA_FALSE;
} }
...@@ -417,7 +417,7 @@ bfa_port_hbfail(void *arg) ...@@ -417,7 +417,7 @@ bfa_port_hbfail(void *arg)
*/ */
if (port->endis_pending) { if (port->endis_pending) {
if (port->endis_cbfn) if (port->endis_cbfn)
port->endis_cbfn(port->dev, BFA_STATUS_FAILED); port->endis_cbfn(port->endis_cbarg, BFA_STATUS_FAILED);
port->endis_cbfn = NULL; port->endis_cbfn = NULL;
port->endis_pending = BFA_FALSE; port->endis_pending = BFA_FALSE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment