summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
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 21:46:40 +0100
commitc40701eacbaebcfe3fb6fac8ef3da653021c212c (patch)
tree8b602862745a4988a7652b55c50770d0bfc4471c /drivers/net/can
parentath9k_hw: fix a comment (diff)
downloadlinux-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