mwifiex: usb: return an error if kmalloc fails
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Aug 2015 07:49:27 +0000 (10:49 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Aug 2015 12:33:25 +0000 (15:33 +0300)
commit3b1f0e86958b8afcfb6980f987c41e149480f9bd
treedce81ca73b01c2603d2945750714b1b69cc8cb46
parent3544f9f150bb58a3678c161a505b186893971c8a
mwifiex: usb: return an error if kmalloc fails

The current code returns success if kmalloc fails.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/usb.c