mwifiex: NULL check for cfg80211_inform_bss()
authorXinming Hu <huxm@marvell.com>
Fri, 18 Sep 2015 13:32:07 +0000 (06:32 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 Sep 2015 07:47:33 +0000 (10:47 +0300)
commit02421dd3f6af1b6becb6d9a690a2b70c73c03a7a
treecc6f94292ec9413dc08484fa827ccde5739848b4
parent9a9053c3420fcc5779319e4ea267c6dcbf8d7c04
mwifiex: NULL check for cfg80211_inform_bss()

cfg80211_inform_bss would return null in some cases, such as
memory allocation failure.

This patch adds sanity check for this case, to avoid possible
issues when above corner case is hit.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/scan.c