From: Wu Fengguang <fengguang.wu@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"Wang, Zhenyu Z" <zhenyu.z.wang@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"Barnes, Jesse" <jesse.barnes@intel.com>,
Jeremy Bush <contractfrombelow@gmail.com>,
Christopher White <c.white@pulseforce.com>,
"Bossart, Pierre-louis" <pierre-louis.bossart@intel.com>
Subject: Re: [PATCH 1/2] hda - fix ELD memory leak
Date: Wed, 16 Nov 2011 00:56:18 +0800 [thread overview]
Message-ID: <20111115165618.GA4762@localhost> (raw)
In-Reply-To: <s5h1ut9fnr8.wl%tiwai@suse.de>
On Tue, Nov 15, 2011 at 10:45:15PM +0800, Takashi Iwai wrote:
> At Tue, 15 Nov 2011 22:41:16 +0800,
> Wu Fengguang wrote:
> >
> > On Tue, Nov 15, 2011 at 10:35:41PM +0800, Takashi Iwai wrote:
> > > At Tue, 15 Nov 2011 22:31:55 +0800,
> > > Wu Fengguang wrote:
> > > >
> > > > memset(eld) clears eld->proc_entry which will leak the struct
> > > > snd_info_entry when unloading the module.
> > > >
> > > > Fix it by
> > > > - remove memset(eld)
> > > > - set eld->eld_valid to true _after_ all eld fields have been filled
> > > > - don't access the other eld fields when (eld->eld_valid == false)
> > > >
> > > > Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
> > >
> > > This should be send to stable kernel, too, right?
> > > It appears in 3.1, at least.
> >
> > Yeah. Good point! I'll resend it when everything goes fine.
>
> Ah, no, you don't need to resend. I'd just need to put Cc to stable
> in the patch commit log. Then Greg will pick it up automatically
> when the tree is merged to the upstream.
Ah OK, that would be convenient.
> But of course I need to know beforehand whether the patch is intended
> to be sent to stable or not.
Ack. The patch applies cleanly to 3.1.
Thanks,
Fengguang
next prev parent reply other threads:[~2011-11-15 16:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-15 14:31 [PATCH 1/2] hda - fix ELD memory leak Wu Fengguang
2011-11-15 14:33 ` [PATCH 2/2] hda - delayed ELD repoll Wu Fengguang
2011-11-15 16:56 ` Wu Fengguang
2011-11-15 16:57 ` [PATCH 2/2 v2] " Wu Fengguang
2011-11-15 17:10 ` Takashi Iwai
2011-11-16 2:35 ` Wu Fengguang
2011-11-16 7:02 ` Paul Menzel
2011-11-15 18:25 ` [PATCH 2/2] " Stephen Warren
2011-11-16 2:48 ` [alsa-devel] " Wu Fengguang
2011-11-16 15:51 ` Stephen Warren
2011-11-16 15:57 ` Takashi Iwai
2011-11-16 16:12 ` Stephen Warren
2011-11-16 16:16 ` [alsa-devel] " Takashi Iwai
2011-11-16 22:46 ` Wu Fengguang
2011-11-16 23:12 ` Wu Fengguang
2011-11-15 14:35 ` [PATCH 1/2] hda - fix ELD memory leak Takashi Iwai
2011-11-15 14:41 ` Wu Fengguang
2011-11-15 14:45 ` Takashi Iwai
2011-11-15 16:56 ` Wu Fengguang [this message]
2011-11-15 18:19 ` Stephen Warren
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=20111115165618.GA4762@localhost \
--to=fengguang.wu@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=c.white@pulseforce.com \
--cc=contractfrombelow@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jesse.barnes@intel.com \
--cc=pierre-louis.bossart@intel.com \
--cc=tiwai@suse.de \
--cc=zhenyu.z.wang@intel.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