brcmfmac: fix potential NULL dereference
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Thu, 18 Oct 2012 10:10:56 +0000 (18:10 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Oct 2012 17:18:08 +0000 (13:18 -0400)
commit9495b31ad7e2b479501abb36a62789d59ee406fc
treebe599e2b6f158010d97209dbd30b45f6021fd525
parent73b26df5fa1a6245d6fc982362518b620bc7c2fe
brcmfmac: fix potential NULL dereference

Fix a samtch warnings catched by Fengguang's 0-DAY system:
+ drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c:3572 brcmf_cfg80211_sched_scan_start() error: we previously assumed 'request' could be null (see line 3571)

Cc: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c