From: Jing Huang Date: Fri, 9 Jul 2010 03:01:07 +0000 (-0700) Subject: [SCSI] bfa: fix wrong arg to callback X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8a4adf1c906ee07a01cb47297130a71489f2e4f0;p=mv-sheeva.git [SCSI] bfa: fix wrong arg to callback This patch fixes the issue of passing wrong argument to callback function. Signed-off-by: Jing Huang Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/bfa/bfa_port.c b/drivers/scsi/bfa/bfa_port.c index 6773e2282dd..c7e69f1e56e 100644 --- a/drivers/scsi/bfa/bfa_port.c +++ b/drivers/scsi/bfa/bfa_port.c @@ -407,7 +407,7 @@ bfa_port_hbfail(void *arg) */ if (port->stats_busy) { 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_busy = BFA_FALSE; } @@ -417,7 +417,7 @@ bfa_port_hbfail(void *arg) */ if (port->endis_pending) { 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_pending = BFA_FALSE; }