IB/qib: Fix a possible data corruption when receiving packets
commitbb51fd2a90ae586c96df8472d9b3f8504456ee6b
authorRam Vepa <ram.vepa@qlogic.com>
Fri, 23 Dec 2011 13:01:43 +0000 (23 08:01 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:33:16 +0000 (12 11:33 -0800)
tree3ff305e8f1026199cad0133314dc9a2d95e809bb
parent91b5a5e86c31c628325c79296b3736d179ca52aa
IB/qib: Fix a possible data corruption when receiving packets

commit eddfb675256f49d14e8c5763098afe3eb2c93701 upstream.

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>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/infiniband/hw/qib/qib_iba6120.c
drivers/infiniband/hw/qib/qib_iba7220.c
drivers/infiniband/hw/qib/qib_iba7322.c