Re: [PATCH] ALSA: sparc: Add missing kfree in error path

2015-07-17 Thread Takashi Iwai
On Fri, 17 Jul 2015 20:33:21 +0200, Christophe JAILLET wrote: > > If 'of_ioremap' fails, then 'amd' should be freed, otherwise, there is a > memory leak. > > Signed-off-by: Christophe JAILLET Applied, thanks. Takashi > --- > sound/sparc/amd7930.c | 1 + > 1 file changed, 1 insertion(+) > >

[PATCH] ALSA: sparc: Add missing kfree in error path

2015-07-17 Thread Christophe JAILLET
If 'of_ioremap' fails, then 'amd' should be freed, otherwise, there is a memory leak. Signed-off-by: Christophe JAILLET --- sound/sparc/amd7930.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c index 1b1a89e..784ceb8 100644 --- a/sound/sparc/amd7