mwifiex: add NULL check for PCIe Rx skb
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 18 Feb 2014 23:41:55 +0000 (15:41 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Feb 2014 20:53:20 +0000 (15:53 -0500)
commitbb8e6a1ee881d131e404f0f1f5e8dc9281002771
treef496b74a02647dfab915966ac73032a32ff80192
parent4f7ba432202c8330cc03ab959c6228d0de5dc4a3
mwifiex: add NULL check for PCIe Rx skb

We may get a NULL pointer here if skb allocation for Rx packet
was failed earlier.

Cc: <stable@vger.kernel.org> # 3.9+
Signed-off-by: Amitkumar Karwar <akarwar@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