linux-kernel-test/drivers/net/wireless/brcm80211
Jesper Juhl c40701eacb brcm80211: Don't leak 'vbuffer' in brcmf_sdbrcm_write_vars()
If the memory allocation 'nvram_ularray = kmalloc(varsize,
GFP_ATOMIC);' fails we'll leak the memory allocated to 'vbuffer' when
we return -ENOMEM from the function.

This patch resolves the leak by kfree()'ing the allocated memory
before the return.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-01-10 15:46:40 -05:00
..
brcmfmac brcm80211: Don't leak 'vbuffer' in brcmf_sdbrcm_write_vars() 2012-01-10 15:46:40 -05:00
brcmsmac net: fix assignment of 0/1 to bool variables. 2011-12-19 22:27:29 -05:00
brcmutil brcm80211: util: remove pointer traversal from brcmu_pkt_buf_free_skb 2011-11-11 14:28:43 -05:00
include brcm80211: smac: use bcma core access functions in otp.c 2011-12-13 15:47:58 -05:00
Kconfig brcm80211: fmac: add Kconfig option for SDIO bus support 2011-12-19 14:40:48 -05:00
Makefile