[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87bkpeq3xl.wl-tiwai@suse.de>
Date: Thu, 10 Nov 2022 15:28:38 +0100
From: Takashi Iwai <tiwai@...e.de>
To: Ye Bin <yebin@...weicloud.com>
Cc: perex@...ex.cz, tiwai@...e.com, alsa-devel@...a-project.org,
yebin10@...wei.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: hda: fix potential memleak in 'add_widget_node'
On Thu, 10 Nov 2022 15:45:39 +0100,
Ye Bin wrote:
>
> From: Ye Bin <yebin10@...wei.com>
>
> As 'kobject_add' may allocated memory for 'kobject->name' when return error.
> And in this function, if call 'kobject_add' failed didn't free kobject.
> So call 'kobject_put' to recycling resources.
>
> Signed-off-by: Ye Bin <yebin10@...wei.com>
Thanks, applied now.
Takashi
Powered by blists - more mailing lists