linux-stable/drivers/firmware/imx
Hao Ge 8d8346ed39 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-02 09:35:25 +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-02 09:35:25 +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 firmware: imx: Align imx_sc_msg_req_cpu_start to 4 2020-02-24 15:27:48 +08:00
rm.c firmware: imx: add get resource owner api 2022-02-12 14:07:36 +08:00
scu-pd.c firmware: imx: scu-pd: imx8q: add vpu mu resources 2022-02-20 14:55:32 +08:00