mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 15:41:39 +00:00
[SCSI] bfa: fix wrong arg to callback
This patch fixes the issue of passing wrong argument to callback function. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
ba8345821a
commit
8a4adf1c90
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user