]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: cs35l41: fix double free on error in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 11 Jan 2022 07:22:32 +0000 (10:22 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 11 Jan 2022 15:57:24 +0000 (16:57 +0100)
commit972751e043c6a0b7131d4f47f7d868f5e8d9b40e
tree51d0b4702cdfdc9c59ec548ccbc1dceb26a6259f
parent256ae6e627793fa422f31fc2424ddc61e63cb2a9
ALSA: hda: cs35l41: fix double free on error in probe()

If we encounter an error after the kfree(acpi_hw_cfg); then the goto
err; will result in a double free.

Fixes: 6c4ddfa8b93f ("ALSA: hda: cs35l41: Add support for CS35L41 in HDA systems")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220111072232.GG11243@kili
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda.c