lkml.org 
[lkml]   [2020]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Re: [PATCH] ALSA: echoaudio: Fix memory leak in snd_echo_resume()

> On Mon, 10 Aug 2020 08:14:58 +0200,
> Dinghao Liu wrote:
> >
> > When restore_dsp_rettings() fails, chip should be freed
> > just like when init_hw() and request_irq() fails.
> >
> > Fixes: 47b5d028fdce8 ("ALSA: Echoaudio - Add suspend support #2")
> > Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
>
> Actually it's rather wrong to call snd_echo_free() in the resume error
> path. This may lead to an Oops at the next time the system goes to
> resume. That said, we should drop snd_echo_free() calls in other
> error paths in snd_echo_resume() instead.
>

Thank you for your advice! I will send a new patch to fix this soon.

Regards,
Dinghao
\
 
 \ /
  Last update: 2020-08-13 08:46    [W:0.052 / U:0.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site