brcmfmac: fix NULL pointer access in brcmf_create_iovar()
authorArend van Spriel <arend@broadcom.com>
Tue, 6 Nov 2012 00:22:21 +0000 (16:22 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Nov 2012 19:55:53 +0000 (14:55 -0500)
commitbb451c8304604b4accdc5a86b7f731878175a83c
tree1097c639d77e2b487dbd39e907fc8b7e978e5148
parent80e0fa8920fbf6474722ce85afd235663ef656a7
brcmfmac: fix NULL pointer access in brcmf_create_iovar()

The function brcmf_fil_bsscfg_data_get() calls brcmf_create_iovar()
with data pointer set to NULL, which caused a NULL pointer access.
As it should be possible to provide data in message towards the
firmware, it should just pass the data buffer instead.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/fwil.c