public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org,
	David Henningsson <david.henningsson@canonical.com>
Subject: Re: [patch] ALSA: hda - unlock on error in azx_interrupt()
Date: Fri, 18 May 2012 13:47:32 +0000	[thread overview]
Message-ID: <s5h4nrdbnyj.wl%tiwai@suse.de> (raw)
In-Reply-To: <20120518073611.GA4136@elgon.mountain>

At Fri, 18 May 2012 10:36:11 +0300,
Dan Carpenter wrote:
> 
> There is an spin_unlock() missing on this error path.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> ---
> This was added recently in a82d51ed2 "ALSA: hda - Support
> VGA-switcheroo".  I don't have the hardware so I haven't tested it.

Good catch.  Applied now.
Thanks.

Takashi

> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index bbf953f..2b6392b 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -1268,8 +1268,10 @@ static irqreturn_t azx_interrupt(int irq, void *dev_id)
>  
>  	spin_lock(&chip->reg_lock);
>  
> -	if (chip->disabled)
> +	if (chip->disabled) {
> +		spin_unlock(&chip->reg_lock);
>  		return IRQ_NONE;
> +	}
>  
>  	status = azx_readl(chip, INTSTS);
>  	if (status = 0) {
> 

      reply	other threads:[~2012-05-18 13:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-18  7:36 [patch] ALSA: hda - unlock on error in azx_interrupt() Dan Carpenter
2012-05-18 13:47 ` 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=s5h4nrdbnyj.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=dan.carpenter@oracle.com \
    --cc=david.henningsson@canonical.com \
    --cc=kernel-janitors@vger.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