From: Takashi Iwai <tiwai@suse.de>
To: Denis Efremov <yefremov.denis@gmail.com>
Cc: Bill Pemberton <wfp5p@virginia.edu>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [ALSA] sound: rme32.c irq enabling after spin_lock_irq
Date: Mon, 11 Feb 2013 16:31:36 +0100 [thread overview]
Message-ID: <s5ha9raq33b.wl%tiwai@suse.de> (raw)
In-Reply-To: <1360595046-25004-1-git-send-email-yefremov.denis@gmail.com>
At Mon, 11 Feb 2013 19:04:06 +0400,
Denis Efremov wrote:
>
> According to the other code in this driver and similar
> code in rme96 it seems, that spin_lock_irq in
> snd_rme32_capture_close function should be paired
> with spin_unlock_irq.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Denis Efremov <yefremov.denis@gmail.com>
Thanks, applied (with Cc to stable, too).
Takashi
> ---
> sound/pci/rme32.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c
> index 2450663..0ecd410 100644
> --- a/sound/pci/rme32.c
> +++ b/sound/pci/rme32.c
> @@ -1017,7 +1017,7 @@ static int snd_rme32_capture_close(struct snd_pcm_substream *substream)
> spin_lock_irq(&rme32->lock);
> rme32->capture_substream = NULL;
> rme32->capture_periodsize = 0;
> - spin_unlock(&rme32->lock);
> + spin_unlock_irq(&rme32->lock);
> return 0;
> }
>
> --
> 1.8.1.2
>
prev parent reply other threads:[~2013-02-11 15:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-11 15:04 [PATCH] [ALSA] sound: rme32.c irq enabling after spin_lock_irq Denis Efremov
2013-02-11 15:31 ` 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=s5ha9raq33b.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=wfp5p@virginia.edu \
--cc=yefremov.denis@gmail.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