qla3xxx: bugfix: Add memory barrier before accessing rx completion.
authorRon Mercer <ron.mercer@qlogic.com>
Mon, 1 Oct 2007 18:43:22 +0000 (11:43 -0700)
committerJeff Garzik <jeff@garzik.org>
Tue, 2 Oct 2007 16:55:10 +0000 (12:55 -0400)
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/qla3xxx.c

index 69da95b..c3fe1c7 100755 (executable)
@@ -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: