diff options
| author | Zichen Xie <zichenxie0106@gmail.com> | 2024-10-06 15:57:37 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-01 01:56:07 +0100 |
| commit | e19bf49e903337641fc230d430d49813e3199902 (patch) | |
| tree | 87e3c4883276dc99e290b5650224a925fd6a35f9 /drivers/platform | |
| parent | 61b8628cbbcc8d892055c49aabda6fea09858742 (diff) | |
| download | linux-e19bf49e903337641fc230d430d49813e3199902.tar.gz linux-e19bf49e903337641fc230d430d49813e3199902.tar.bz2 linux-e19bf49e903337641fc230d430d49813e3199902.zip | |
ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
commit 49da1463c9e3d2082276c3e0e2a8b65a88711cd2 upstream.
A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
possibly return NULL pointer. NULL Pointer Dereference may be
triggerred without addtional check.
Add a NULL check for the returned pointer.
Fixes: b5022a36d28f ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
Cc: stable@vger.kernel.org
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Link: https://patch.msgid.link/20241006205737.8829-1-zichenxie0106@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions
