mwifiex: access interrupt status only while holding lock
authorAvinash Patil <patila@marvell.com>
Fri, 4 Jan 2013 05:21:28 +0000 (21:21 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jan 2013 20:18:29 +0000 (15:18 -0500)
commit659c4788611f725ede2def6e4db5d8d4a59b93b5
tree659d0d8fb6f9f4db383197dc8f287566ec3730d3
parent6ba1eafed183c6e0886d3483c8acac4efe1e95db
mwifiex: access interrupt status only while holding lock

This patch fixes a bug for few instances where PCIe interrupt
status variable is accessed without holding spin lock.
This can result into missing interrupts.

Fix this by copying interrupt status to a local variable and
then using it for calling specific routine.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c