From: Jesper Juhl Date: Sun, 8 Jan 2012 22:41:21 +0000 (+0100) Subject: brcm80211: Don't leak 'vbuffer' in brcmf_sdbrcm_write_vars() X-Git-Tag: v3.3-rc1~82^2~13^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c40701eacbaebcfe3fb6fac8ef3da653021c212c;p=pandora-kernel.git 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 Acked-by: Arend van Spriel Signed-off-by: John W. Linville --- Reading git-diff-tree failed