Skip to content
Snippets Groups Projects
Commit c40701ea authored by Jesper Juhl's avatar Jesper Juhl Committed by John W. Linville
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Acked-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e4922f2b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment