]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: rt5663: check the return value of devm_kzalloc() in rt5663_parse_dp()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 25 Feb 2022 13:10:30 +0000 (05:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:49 +0000 (13:57 +0200)
commit5c0f8cbeecd5e7ffb9ef6bb7f3534ac6ca5370fc
tree8d92f35830016e115a8c5f7d4f4c4cee2afebdba
parent1188d8b12956eb03dab387d379971c13920907dc
ASoC: rt5663: check the return value of devm_kzalloc() in rt5663_parse_dp()

[ Upstream commit 4d06f92f38b799295ae22c98be7a20cac3e2a1a7 ]

The function devm_kzalloc() in rt5663_parse_dp() can fail, so its return
value should be checked.

Fixes: 457c25efc592 ("ASoC: rt5663: Add the function of impedance sensing")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Link: https://lore.kernel.org/r/20220225131030.27248-1-baijiaju1990@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rt5663.c