ASoC: SOF: ipc4-topology: Fix input format query of process modules without base...
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 29 May 2024 12:12:01 +0000 (15:12 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 29 May 2024 12:34:44 +0000 (13:34 +0100)
commitffa077b2f6ad124ec3d23fbddc5e4b0ff2647af8
tree22a05527e0e9cad8a9f79428354a28bd0b833128
parentb062938fd9afec844c50571fddd8d81623a60ee1
ASoC: SOF: ipc4-topology: Fix input format query of process modules without base extension

If a process module does not have base config extension then the same
format applies to all of it's inputs and the process->base_config_ext is
NULL, causing NULL dereference when specifically crafted topology and
sequences used.

Fixes: 648fea128476 ("ASoC: SOF: ipc4-topology: set copier output format for process module")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://msgid.link/r/20240529121201.14687-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c