From: Ron Mercer Date: Mon, 1 Oct 2007 18:43:22 +0000 (-0700) Subject: qla3xxx: bugfix: Add memory barrier before accessing rx completion. X-Git-Tag: upstream/snapshot3+hdmi~31064^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b323e0e49fe9331ee3a7a336af879d6e303b16b3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git qla3xxx: bugfix: Add memory barrier before accessing rx completion. Signed-off-by: Ron Mercer Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index 69da95b..c3fe1c7 100755 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c @@ -2248,6 +2248,7 @@ static int ql_tx_rx_clean(struct ql3_adapter *qdev, qdev->rsp_consumer_index) && (work_done < work_to_do)) { net_rsp = qdev->rsp_current; + rmb(); switch (net_rsp->opcode) { case OPCODE_OB_MAC_IOCB_FN0: