mwifiex: clean pcie ring only when device is present
authorAvinash Patil <patila@marvell.com>
Tue, 18 Feb 2014 23:41:54 +0000 (15:41 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Feb 2014 20:51:07 +0000 (15:51 -0500)
Write io memory to clean PCIe buffer only when PCIe device is
present else this results into crash because of invalid memory
access.

Cc: <stable@vger.kernel.org> # 3.9+
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/wmm.c

Simple merge