mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 17:28:56 +00:00
bnx2x: Missing rmb when waiting for FW response
Waiting for the FW to response requires a memory barrier Signed-off-by: Michal Kalderon <michals@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7cde1c8b79
commit
5650d9d4cb
@ -6622,6 +6622,7 @@ static int bnx2x_stop_leading(struct bnx2x *bp)
|
||||
}
|
||||
cnt--;
|
||||
msleep(1);
|
||||
rmb(); /* Refresh the dsb_sp_prod */
|
||||
}
|
||||
bp->state = BNX2X_STATE_CLOSING_WAIT4_UNLOAD;
|
||||
bp->fp[0].state = BNX2X_FP_STATE_CLOSED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user