diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-01-08 23:41:21 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-10 21:46:40 +0100 |
commit | c40701eacbaebcfe3fb6fac8ef3da653021c212c (patch) | |
tree | 8b602862745a4988a7652b55c50770d0bfc4471c /drivers/net/can | |
parent | ath9k_hw: fix a comment (diff) | |
download | linux-c40701eacbaebcfe3fb6fac8ef3da653021c212c.tar.xz linux-c40701eacbaebcfe3fb6fac8ef3da653021c212c.zip |
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/can')
0 files changed, 0 insertions, 0 deletions