From: Takashi Iwai <tiwai@suse.de>
To: Ye Bin <yebin@huaweicloud.com>
Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org,
yebin10@huawei.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda: fix potential memleak in 'add_widget_node'
Date: Thu, 10 Nov 2022 15:28:38 +0100 [thread overview]
Message-ID: <87bkpeq3xl.wl-tiwai@suse.de> (raw)
In-Reply-To: <20221110144539.2989354-1-yebin@huaweicloud.com>
On Thu, 10 Nov 2022 15:45:39 +0100,
Ye Bin wrote:
>
> From: Ye Bin <yebin10@huawei.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@huawei.com>
Thanks, applied now.
Takashi
prev parent reply other threads:[~2022-11-10 14:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 14:45 Ye Bin
2022-11-10 14:28 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bkpeq3xl.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=yebin10@huawei.com \
--cc=yebin@huaweicloud.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®