]> git.baikalelectronics.ru Git - kernel.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)
committerMark Brown <broonie@kernel.org>
Mon, 21 Jun 2021 12:03:18 +0000 (13:03 +0100)
commit89c6f501d0e1335d3242e756e48a2390438c2d9f
tree4ae1a3c0d42d58d827de42adaccbf1ba4266c6e7
parentb92961e09a668cb7f12f65a1fec17d87fd74139c
ASoC: fsl_xcvr: check return value after calling platform_get_resource_byname()

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>
sound/soc/fsl/fsl_xcvr.c