kernel_optimize_test/drivers/soc/fsl
Robert-Ionut Alexa 41968262bb soc: fsl: dpaa2-console: free buffer before returning from dpaa2_console_read
[ Upstream commit 8120bd469f5525da229953c1197f2b826c0109f4 ]

Free the kbuf buffer before returning from the dpaa2_console_read()
function. The variable no longer goes out of scope, leaking the storage
it points to.

Fixes: c93349d8c1 ("soc: fsl: add DPAA2 console support")
Signed-off-by: Robert-Ionut Alexa <robert-ionut.alexa@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 14:04:24 +01:00
..
dpio soc: fsl: dpio: use the combined functions to protect critical zone 2021-11-18 14:03:48 +01:00
qbman
qe
dpaa2-console.c soc: fsl: dpaa2-console: free buffer before returning from dpaa2_console_read 2021-11-18 14:04:24 +01:00
guts.c
Kconfig
Makefile
rcpm.c