OSDN Git Service

libertas: check for NULL before use
authorsudip <sudipm.mukherjee@gmail.com>
Tue, 24 Nov 2015 08:21:38 +0000 (13:51 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 26 Nov 2015 13:05:10 +0000 (15:05 +0200)
commit0a38c8e1b592c16d959da456f425053e323a5153
tree8c247b4c3378a81e94815b04ab6da88e94a987d1
parent68ec581011ae0cf84392e7b22b05dc63818e4e6d
libertas: check for NULL before use

If kzalloc fails it will return NULL. Lets check for NULL first before
using the pointer.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas/cfg.c