summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/calib.c
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-01-08 23:41:21 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-01-10 15:46:40 -0500
commitc40701eacbaebcfe3fb6fac8ef3da653021c212c (patch)
tree8b602862745a4988a7652b55c50770d0bfc4471c /drivers/net/wireless/ath/ath9k/calib.c
parente4922f2b5f1c2b3daa80b56a6eeca984cbee0dde (diff)
downloadop-kernel-dev-c40701eacbaebcfe3fb6fac8ef3da653021c212c.zip
op-kernel-dev-c40701eacbaebcfe3fb6fac8ef3da653021c212c.tar.gz
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud