]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: imx-card: Adjust over allocation of memory in imx_card_parse_of()
authorChenyuan Yang <chenyuan0y@gmail.com>
Sun, 6 Apr 2025 21:08:54 +0000 (16:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:18 +0000 (14:40 +0200)
commitf4ae54bffbfd787a7123ad002959c5fc7fbe759b
tree07872006529f2775f9aaafe0a7703bb401f03cea
parentffb55ddf26850a8af666d9c04086ad9b34b6a8a4
ASoC: imx-card: Adjust over allocation of memory in imx_card_parse_of()

[ Upstream commit a9a69c3b38c89d7992fb53db4abb19104b531d32 ]

Incorrect types are used as sizeof() arguments in devm_kcalloc().
It should be sizeof(dai_link_data) for link_data instead of
sizeof(snd_soc_dai_link).

This is found by our static analysis tool.

Signed-off-by: Chenyuan Yang <chenyuan0y@gmail.com>
Link: https://patch.msgid.link/20250406210854.149316-1-chenyuan0y@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/imx-card.c