[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210525080033.GA13895@hyeyoo>
Date: Tue, 25 May 2021 17:00:33 +0900
From: Hyeonggon Yoo <42.hyeyoo@...il.com>
To: Takashi Iwai <tiwai@...e.de>
Cc: Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Oliver Neukum <oneukum@...e.com>,
Vasily Khoruzhick <anarsoul@...il.com>,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: line6: Improve poor error handling in
line6_init_cap_control
On Tue, May 25, 2021 at 09:05:13AM +0200, Takashi Iwai wrote:
> Those resources are freed in the common destructor of the card
> instance, line6_destruct(),
Oh my god, I missed line6_destruct.
> at disconnect callback, so it's redundant
> to release them here; even worse, since you haven't re-initialize with
> NULL, this change would lead to double-free.
Yes then it can cause double-free..
>
>
> thanks,
>
> Takashi
I made a mistake, I'm so sorry to take your time...
Thanks,
Hyeonggon
Powered by blists - more mailing lists