brcmfmac: add parameter check in brcmf_c_mkiovar()
authorArend van Spriel <arend@broadcom.com>
Thu, 13 Sep 2012 19:12:05 +0000 (21:12 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Sep 2012 18:59:09 +0000 (14:59 -0400)
commit4f6e1cafe25df11f4c8afe5d6a3ee051aa6d5de3
tree1d0a6212f4719d9fa3566935ad6f3cab58222915
parent9cd23a7191f1abc32252ba92494a910d5cc5fd02
brcmfmac: add parameter check in brcmf_c_mkiovar()

This patch assures data is only appended in output buffer when
data is not NULL and datalen is not zero.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_common.c