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>
This commit is contained in:
sudip 2015-11-24 13:51:38 +05:30 • committed by Kalle Valo
commit 0a38c8e1b5