IB/qib: Fix a possible data corruption when receiving packets
commiteddfb675256f49d14e8c5763098afe3eb2c93701
authorRam Vepa <ram.vepa@qlogic.com>
Fri, 23 Dec 2011 13:01:43 +0000 (23 08:01 -0500)
committerRoland Dreier <roland@purestorage.com>
Wed, 4 Jan 2012 04:53:02 +0000 (3 20:53 -0800)
treefefe361432c162a48f98076f7156920e083c42fb
parent8482d5d1bc18c17429a89ad37f8b74d5a16de239
IB/qib: Fix a possible data corruption when receiving packets

Prevent a receive data corruption by ensuring that the write to update
the rcvhdrheadn register to generate an interrupt is at the very end
of the receive processing.

Signed-off-by: Ramkrishna Vepa <ram.vepa@qlogic.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Cc: <stable@kernel.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_iba6120.c
drivers/infiniband/hw/qib/qib_iba7220.c
drivers/infiniband/hw/qib/qib_iba7322.c