Re: [PATCH] ASoC: wm0010: fix memory leak

2015-09-01 Thread Charles Keepax
On Tue, Sep 01, 2015 at 11:14:05AM +0530, Sudip Mukherjee wrote: > We were aborting if the kzalloc of img_swap fails but without freeing the > already allocated out. Similarly we were aborting if spi_sync fails > without releasing out and img_swap. > > Signed-off-by: Sudip Mukherjee > ---

Re: [PATCH] ASoC: wm0010: fix memory leak

2015-09-01 Thread Charles Keepax
On Tue, Sep 01, 2015 at 11:14:05AM +0530, Sudip Mukherjee wrote: > We were aborting if the kzalloc of img_swap fails but without freeing the > already allocated out. Similarly we were aborting if spi_sync fails > without releasing out and img_swap. > > Signed-off-by: Sudip Mukherjee

[PATCH] ASoC: wm0010: fix memory leak

2015-08-31 Thread Sudip Mukherjee
We were aborting if the kzalloc of img_swap fails but without freeing the already allocated out. Similarly we were aborting if spi_sync fails without releasing out and img_swap. Signed-off-by: Sudip Mukherjee --- sound/soc/codecs/wm0010.c | 8 +++- 1 file changed, 7 insertions(+), 1

[PATCH] ASoC: wm0010: fix memory leak

2015-08-31 Thread Sudip Mukherjee
We were aborting if the kzalloc of img_swap fails but without freeing the already allocated out. Similarly we were aborting if spi_sync fails without releasing out and img_swap. Signed-off-by: Sudip Mukherjee --- sound/soc/codecs/wm0010.c | 8 +++- 1 file changed, 7