login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
May
»
27
Re: [PATCH 17/17] sound: Add missing spin_unlock
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Takashi Iwai
Subject:
Re: [PATCH 17/17] sound: Add missing spin_unlock
Date: Thursday, May 27, 2010 - 1:09 am
At Wed, 26 May 2010 17:59:27 +0200 (CEST), Julia Lawall wrote:
quoted text
> > From: Julia Lawall <julia@diku.dk> > > Add a spin_unlock missing on the error path. > > The semantic match that finds this problem is as follows: > (
http://coccinelle.lip6.fr/
) > > // <smpl> > @@ > expression E1; > @@ > > * spin_lock(E1,...); > <+... when != E1 > if (...) { > ... when != E1 > * return ...; > } > ...+> > * spin_unlock(E1,...); > // </smpl> > > Signed-off-by: Julia Lawall <julia@diku.dk>
Thanks, applied now. Takashi
quoted text
> --- > sound/mips/au1x00.c | 1 + > sound/oss/dmasound/dmasound_atari.c | 5 +++-- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/sound/mips/au1x00.c b/sound/mips/au1x00.c > index 3e763d6..446cf97 100644 > --- a/sound/mips/au1x00.c > +++ b/sound/mips/au1x00.c > @@ -516,6 +516,7 @@ get the interrupt driven case to work efficiently */ > break; > if (i == 0x5000) { > printk(KERN_ERR "au1000 AC97: AC97 command read timeout\n"); > + spin_unlock(&au1000->ac97_lock); > return 0; > } > > diff --git a/sound/oss/dmasound/dmasound_atari.c b/sound/oss/dmasound/dmasound_atari.c > index 1f47741..13c2144 100644 > --- a/sound/oss/dmasound/dmasound_atari.c > +++ b/sound/oss/dmasound/dmasound_atari.c > @@ -1277,7 +1277,7 @@ static irqreturn_t AtaInterrupt(int irq, void *dummy) > * (almost) like on the TT. > */ > write_sq_ignore_int = 0; > - return IRQ_HANDLED; > + goto out; > } > > if (!write_sq.active) { > @@ -1285,7 +1285,7 @@ static irqreturn_t AtaInterrupt(int irq, void *dummy) > * the sq variables, so better don't do anything here. > */ > WAKE_UP(write_sq.sync_queue); > - return IRQ_HANDLED; > + goto out; > } > > /* Probably ;) one frame is finished. Well, in fact it may be that a > @@ -1322,6 +1322,7 @@ static irqreturn_t AtaInterrupt(int irq, void *dummy) > /* We are not playing after AtaPlay(), so there > is nothing to play any more. Wake up a process > waiting for audio output to drain. */ > +out: > spin_unlock(&dmasound.lock); > return IRQ_HANDLED; > } >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 17/17] sound: Add missing spin_unlock
, Julia Lawall
, (Wed May 26, 8:59 am)
Re: [PATCH 17/17] sound: Add missing spin_unlock
, Takashi Iwai
, (Thu May 27, 1:09 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?