]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: fsl_xcvr: check return value after calling platform_get_resource_byname()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 15 Jun 2021 01:39:22 +0000 (09:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:02:11 +0000 (16:02 +0200)
commit4376c360a7a59eec758eb93020fdf93fc7301602
tree7232f2572e0c5b31e5736cf786dcea7fbb01e585
parent8010106d87498ee745bb115e65a87ee7b906fab5
ASoC: fsl_xcvr: check return value after calling platform_get_resource_byname()

[ Upstream commit a2f6ed4a44721d3a9fdf4da7e0743cb13866bf61 ]

It will cause null-ptr-deref if platform_get_resource_byname() returns NULL,
we need check the return value.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210615013922.784296-10-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/fsl_xcvr.c