WSL2-Linux-Kernel/drivers/firmware/imx
Hao Ge 04dbfa4122 firmware/imx-dsp: Fix use_after_free in imx_dsp_setup_channels()
[ Upstream commit 1558b1a8dd ]

dsp_chan->name and chan_name points to same block of memory,
because dev_err still needs to be used it,so we need free
it's memory after use to avoid use_after_free.

Fixes: e527adfb9b ("firmware: imx-dsp: Fix an error handling path in imx_dsp_setup_channels()")
Signed-off-by: Hao Ge <gehao@kylinos.cn>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-08 17:26:37 +01:00
..
Kconfig firmware: imx: select SOC_BUS to fix firmware build 2021-01-18 15:49:07 +08:00
Makefile firmware: imx: Move i.MX SCU soc driver into imx firmware folder 2020-07-13 10:02:00 +08:00
imx-dsp.c firmware/imx-dsp: Fix use_after_free in imx_dsp_setup_channels() 2023-11-08 17:26:37 +01:00
imx-scu-irq.c firmware: imx: make sure MU irq can wake up system from suspend mode 2020-06-17 21:46:09 +08:00
imx-scu-soc.c firmware: imx: Move i.MX SCU soc driver into imx firmware folder 2020-07-13 10:02:00 +08:00
imx-scu.c firmware: imx: Move i.MX SCU soc driver into imx firmware folder 2020-07-13 10:02:00 +08:00
misc.c
rm.c firmware: imx: add resource management api 2020-06-23 15:37:56 +08:00
scu-pd.c firmware: imx: scu-pd: add missed ADC1 pd 2021-03-29 09:34:37 +08:00