mwifiex: correctly handling kzalloc
authorInsu Yun <wuninsu@gmail.com>
Wed, 30 Dec 2015 16:01:44 +0000 (11:01 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Jan 2016 09:11:51 +0000 (11:11 +0200)
commit50f85e220f6f51798429a3cc74e7c76d27513bef
tree2d69b20f74350f38e7470679eb0f9c088609393f
parent9ec855cc9e17fe111e1f868027a75ac7ae849997
mwifiex: correctly handling kzalloc

Since kzalloc can be failed in memory pressure,
it needs to be handled, otherwise NULL dereference could be happened

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sdio.c