staging: rtl8188eu: core: rtw_wlan_util.c: Fix for NULL dereference
authorKumar Amit Mehta <gmate.amit@gmail.com>
Mon, 26 Jan 2015 15:39:14 +0000 (16:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jan 2015 18:56:49 +0000 (10:56 -0800)
commit0137f1a019952f955f4050495be6725a5f92eb5b
tree617cee02a9dfc082fed719c2922b00d3ed02f2e6
parent1007c692264536d80ad61c1584670583c687652c
staging: rtl8188eu: core: rtw_wlan_util.c: Fix for NULL dereference

In rtw_check_bcn_info(), check the return value of kzalloc() before
dereferencing it, to avoid NULL pointer dereference.

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_wlan_util.c