]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/ca0132: minor fix for allocation size
authorAlexey V. Vissarionov <gremlin@altlinux.org>
Tue, 17 Jan 2023 11:15:23 +0000 (14:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:13 +0000 (09:33 +0100)
commit7d296c8ac0b941db9073710dee7dcaba0bc37d8b
treecbebaadce3001152e393047957ea6602d53e7ff8
parentee7605a1eb79316d761ada5d08d86b8925168d13
ALSA: hda/ca0132: minor fix for allocation size

[ Upstream commit fba681b50b5d1bc3b61a34af1380da8b863a5a1f ]

Although the "dma_chan" pointer occupies more or equal space compared
to "*dma_chan", the allocation size should use the size of variable
itself.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: a87ea1d737d7 ("ALSA: hda - Update CA0132 codec to load DSP firmware binary")
Signed-off-by: Alexey V. Vissarionov <gremlin@altlinux.org>
Link: https://lore.kernel.org/r/20230117111522.GA15213@altlinux.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/patch_ca0132.c