All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Yufen Yu <yuyufen@huawei.com>
Cc: yukuai3@huawei.com, alsa-devel@alsa-project.org, tiwai@suse.com
Subject: Re: [PATCH] ALSA: ac97: fix PM reference leak in ac97_bus_remove()
Date: Tue, 25 May 2021 08:59:20 +0200	[thread overview]
Message-ID: <s5hk0nne1tj.wl-tiwai@suse.de> (raw)
In-Reply-To: <20210524093811.612302-1-yuyufen@huawei.com>

On Mon, 24 May 2021 11:38:11 +0200,
Yufen Yu wrote:
> 
> pm_runtime_get_sync will increment pm usage counter even it failed.
> Forgetting to putting operation will result in reference leak here.
> Fix it by replacing it with pm_runtime_resume_and_get to keep usage
> counter balanced.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Yufen Yu <yuyufen@huawei.com>

Thanks, applied.


Takashi

      reply	other threads:[~2021-05-25  7:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24  9:38 [PATCH] ALSA: ac97: fix PM reference leak in ac97_bus_remove() Yufen Yu
2021-05-25  6:59 ` 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=s5hk0nne1tj.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.com \
    --cc=yukuai3@huawei.com \
    --cc=yuyufen@huawei.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.