]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: qcom: audioreach: fix potential null pointer dereference
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Mon, 25 Aug 2025 10:12:45 +0000 (11:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Oct 2025 09:17:52 +0000 (11:17 +0200)
commit4dda55d04caac3b4102c26e29b1c27fa35636be3
tree0216379408076bf03a4ee1a89fffcf30947ab623
parent1f52119809b76d43759fc47da1cf708690b740a1
ASoC: qcom: audioreach: fix potential null pointer dereference

commit 8318e04ab2526b155773313b66a1542476ce1106 upstream.

It is possible that the topology parsing function
audioreach_widget_load_module_common() could return NULL or an error
pointer. Add missing NULL check so that we do not dereference it.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Stable@vger.kernel.org
Fixes: 36ad9bf1d93d ("ASoC: qdsp6: audioreach: add topology support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20250825101247.152619-2-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/qcom/qdsp6/topology.c