staging: wlan-ng: check return value of kmalloc
authorGujulan Elango, Hari Prasath (H.) <hgujulan@visteon.com>
Wed, 13 May 2015 14:35:25 +0000 (14:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 01:01:51 +0000 (10:01 +0900)
commit4bff39dfb75743c44d429b84b3810a955b8192b2
treee69bba51c74c8da52a336608fb0257c054ad29aa
parent7f804436fbd32c9784a2ae5324e64f9d4717c898
staging: wlan-ng: check return value of kmalloc

check return value of kmalloc before accessing the memory pointer and
return -ENOMEM if allocation fails.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211conv.c