sound: Add missing spin_unlock
authorJulia Lawall <julia@diku.dk>
Wed, 26 May 2010 15:59:27 +0000 (17:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 27 May 2010 07:47:02 +0000 (09:47 +0200)
commit1efddcc981c95e62c4e305fd462e3e98b6f9c5cd
tree9b2bea6600a1bf6c6a11aeca4ec001a793dc5dcc
parent4daf7a0c0b3dd3c2e2ec829ecee8608d04d67773
sound: Add missing spin_unlock

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/mips/au1x00.c
sound/oss/dmasound/dmasound_atari.c