Re: [PATCH] lpss8250_dma_setup: there is memory leak when second allocation fails

2019-07-19 Thread Andy Shevchenko
On Sat, Jul 20, 2019 at 1:23 AM Navid Emamdoost wrote: > > in lpss8250_dma_setup, we need to release the first dma slave object > allocated in case of the second allocation failure. > This will bring a double free instead of fixing anything. NAK. > Signed-off-by: Navid Emamdoost > --- > drive

[PATCH] lpss8250_dma_setup: there is memory leak when second allocation fails

2019-07-19 Thread Navid Emamdoost
in lpss8250_dma_setup, we need to release the first dma slave object allocated in case of the second allocation failure. Signed-off-by: Navid Emamdoost --- drivers/tty/serial/8250/8250_lpss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_lpss