mwifiex: add NULL check for PCIe Rx skb
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 18 Feb 2014 23:41:55 +0000 (15:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Mar 2014 04:38:13 +0000 (21:38 -0700)
commitef8f92b153230230d437e32573c0560bae9a8f13
tree84265688711f7ee8ff5c4418523f45dc3d3299a6
parent036a9770c1ab0fe8fc6af256c002319935145f13
mwifiex: add NULL check for PCIe Rx skb

commit bb8e6a1ee881d131e404f0f1f5e8dc9281002771 upstream.

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

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/pcie.c