summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorWenwen Wang2019-08-10 06:29:48 +0200
committerTakashi Iwai2019-08-10 09:57:22 +0200
commitcfef67f016e4c00a2f423256fc678a6967a9fc09 (patch)
tree4c9319fe3f08a3ec3846a4b331f635481f6d1d0c /sound/soc
parentALSA: hda - Apply workaround for another AMD chip 1022:1487 (diff)
downloadkernel-qcow2-linux-cfef67f016e4c00a2f423256fc678a6967a9fc09.tar.gz
kernel-qcow2-linux-cfef67f016e4c00a2f423256fc678a6967a9fc09.tar.xz
kernel-qcow2-linux-cfef67f016e4c00a2f423256fc678a6967a9fc09.zip
ALSA: hda - Fix a memory leak bug
In snd_hda_parse_generic_codec(), 'spec' is allocated through kzalloc(). Then, the pin widgets in 'codec' are parsed. However, if the parsing process fails, 'spec' is not deallocated, leading to a memory leak. To fix the above issue, free 'spec' before returning the error. Fixes: 352f7f914ebb ("ALSA: hda - Merge Realtek parser code to generic parser") Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc')
0 files changed, 0 insertions, 0 deletions