linux/drivers/net/wireless/brcm80211/brcmfmac
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
..
bcmsdh.c brcm80211: fmac: exclude unnecessary header files 2011-12-19 14:40:47 -05:00
bcmsdh_sdmmc.c brcm80211: fmac: exclude unnecessary header files 2011-12-19 14:40:47 -05:00
dhd.h brcm80211: fmac: move idle macros to dhd_sdio.c 2011-12-19 14:40:47 -05:00
dhd_bus.h brcm80211: fmac: abstract ctrl frames interface function pointers 2011-12-19 14:40:47 -05:00
dhd_cdc.c brcm80211: fmac: abstract ctrl frames interface function pointers 2011-12-19 14:40:47 -05:00
dhd_common.c brcm80211: fmac: move sdio related macros to sdio_host.h 2011-12-19 14:40:46 -05:00
dhd_dbg.h brcm80211: fmac: move debug level macros to dhd_dbg.h 2011-12-19 14:40:47 -05:00
dhd_linux.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2012-01-03 15:16:34 -05:00
dhd_proto.h brcm80211: fmac: move common layer bus interface context to dhd_bus.h 2011-12-19 14:40:46 -05:00
dhd_sdio.c brcm80211: Don't leak 'vbuffer' in brcmf_sdbrcm_write_vars() 2012-01-10 15:46:40 -05:00
Makefile brcm80211: fmac: add Kconfig option for SDIO bus support 2011-12-19 14:40:48 -05:00
sdio_chip.c brcm80211: fmac: exclude unnecessary header files 2011-12-19 14:40:47 -05:00
sdio_chip.h brcm80211: fmac: add resetcore function for bcm4330 chip 2011-11-11 14:28:37 -05:00
sdio_host.h brcm80211: fmac: move sdio related macros to sdio_host.h 2011-12-19 14:40:46 -05:00
wl_cfg80211.c brcm80211: avoid code duplication on set tx power 2011-11-30 15:08:29 -05:00
wl_cfg80211.h brmc80211: fmac: reworked next_bss() 2011-11-08 15:54:04 -05:00