提交 5650d9d4 编写于 作者: E Eilon Greenstein 提交者: David S. Miller

bnx2x: Missing rmb when waiting for FW response

Waiting for the FW to response requires a memory barrier
Signed-off-by: NMichal Kalderon <michals@broadcom.com>
Signed-off-by: NEilon Greenstein <eilong@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7cde1c8b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册