From: Greg KH <gregkh@linuxfoundation.org>
To: 慕冬亮 <mudongliangabcd@gmail.com>
Cc: rafael@kernel.org, linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Suggestion on how to fix "memory leak in snd_ctl_led_register"
Date: Thu, 27 May 2021 06:17:20 +0200 [thread overview]
Message-ID: <YK8dUDlYrq/RRzo7@kroah.com> (raw)
In-Reply-To: <CAD-N9QWYOE5vW=Q4wP74vV-TkrZUDFZxLn5OACX4jUC2ysEACQ@mail.gmail.com>
On Thu, May 27, 2021 at 10:49:22AM +0800, 慕冬亮 wrote:
> Hi kernel developers,
>
> The root cause of "memory leak in snd_ctl_led_register" [1] is
> unbalanced refcount operations in the device_add function [2]. This
> refcount issue causes struct device_private allocated in
> device_private_init unable to be deallocated, leading to memory leak.
> The details are as follows:
<snip>
Great, can you just send a patch to us to resolve the issue? That's the
easiest way to resolve all of this.
thanks,
greg k-h
next prev parent reply other threads:[~2021-05-27 4:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-27 2:49 慕冬亮
2021-05-27 4:17 ` Greg KH [this message]
2021-05-27 4:20 ` 慕冬亮
2021-05-27 4:47 ` 慕冬亮
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=YK8dUDlYrq/RRzo7@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mudongliangabcd@gmail.com \
--cc=rafael@kernel.org \
/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®