dpaa2-console.c: free buffer before returning from dpaa2_console_read
authorRobert-Ionut Alexa <robert-ionut.alexa@nxp.com>
Fri, 23 Apr 2021 09:01:51 +0000 (12:01 +0300)
committerXiaobo Xie <xiaobo.xie@nxp.com>
Thu, 3 Jun 2021 04:09:09 +0000 (06:09 +0200)
commit12853a2d942d2c0982f5ea4f17a0c59128a3a363
treea1b54ffed04e088dd37e0a52943007c4ff58f7eb
parent3f502a7898c14e921d15a0694307918496d35efe
dpaa2-console.c: free buffer before returning from dpaa2_console_read

Dpaa2_console_read function frees kbuf buffer before returning.
The variable no longer goes out of scope, leaking the storage it
points to.

Signed-off-by: Robert-Ionut Alexa <robert-ionut.alexa@nxp.com>
drivers/soc/fsl/dpaa2-console.c