ASoC: SOF: amd: Fix NULL pointer crash in acp_sof_ipc_msg_data function
authorV sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>
Mon, 8 May 2023 07:05:08 +0000 (12:35 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 9 May 2023 05:43:33 +0000 (14:43 +0900)
commit051d71e073614a72ad423d6dacba37a7eeff274d
treefe912fbdca42d3d636522a9cc86218cb6c19b97b
parent17955aba7877a4494d8093ae5498e19469b01d57
ASoC: SOF: amd: Fix NULL pointer crash in acp_sof_ipc_msg_data function

Check substream and runtime variables before assigning.

Signed-off-by: V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com
Link: https://lore.kernel.org/r/20230508070510.6100-1-Vsujithkumar.Reddy@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org
sound/soc/sof/amd/acp-ipc.c