RE: [PATCH][next] soc: fsl: dpio: fix memory leak of a struct qbman on error exit path

2019-02-19 Thread Leo Li
PATCH][next] soc: fsl: dpio: fix memory leak of a struct qbman on > error exit path > > From: Colin Ian King > > Currently the error check for a null reg leaks a struct qbman that was > allocated earlier. Fix this by kfree'ing p on the error exit path. > > Signed-off-b

[PATCH][next] soc: fsl: dpio: fix memory leak of a struct qbman on error exit path

2019-02-19 Thread Colin King
From: Colin Ian King Currently the error check for a null reg leaks a struct qbman that was allocated earlier. Fix this by kfree'ing p on the error exit path. Signed-off-by: Colin Ian King --- drivers/soc/fsl/dpio/qbman-portal.c | 1 + 1 file changed, 1 insertion(+) diff --git