Commit 9ef76d34 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] pcm_native locking fix

It is missing an up() on an error path.
parent e9cfdad8
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment