]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] pcm_native locking fix
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:23:35 +0000 (18:23 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:23:35 +0000 (18:23 -0700)
It is missing an up() on an error path.

sound/core/pcm_native.c

index cde977a9b2928879c189cbc4337da5491154c87d..2dd650feb464b61bdc7032b9c1886614c537888d 100644 (file)
@@ -1982,9 +1982,9 @@ int snd_pcm_open(struct inode *inode, struct file *file)
                }
        }
        remove_wait_queue(&pcm->open_wait, &wait);
+       up(&pcm->open_mutex);
        if (err < 0)
                goto __error;
-       up(&pcm->open_mutex);
        return err;
 
       __error: