Skip to content
Commit 8120bd46 authored by Robert-Ionut Alexa's avatar Robert-Ionut Alexa Committed by Li Yang
Browse files

soc: fsl: dpaa2-console: free buffer before returning from dpaa2_console_read

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: c93349d8

 ("soc: fsl: add DPAA2 console support")
Signed-off-by: default avatarRobert-Ionut Alexa <robert-ionut.alexa@nxp.com>
Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
parent dc7e5940
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment