From 9ef76d34f944770dbdb16785a20480dcf3c8dd6b Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 21 Oct 2003 18:23:35 -0700 Subject: [PATCH] [PATCH] pcm_native locking fix It is missing an up() on an error path. --- sound/core/pcm_native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index cde977a9b2928..2dd650feb464b 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -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: -- 2.53.0