commit | c40701eacbaebcfe3fb6fac8ef3da653021c212c | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jj@chaosbits.net> | Sun Jan 08 23:41:21 2012 +0100 |
committer | John W. Linville <linville@tuxdriver.com> | Tue Jan 10 15:46:40 2012 -0500 |
tree | 8b602862745a4988a7652b55c50770d0bfc4471c | |
parent | e4922f2b5f1c2b3daa80b56a6eeca984cbee0dde [diff] |
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>