diff options
| author | Takashi Iwai <tiwai@suse.de> | 2018-03-27 14:32:23 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-24 09:32:09 +0200 |
| commit | a2b3309a2c1c58560abd3eef1f2a0ff47713e3bd (patch) | |
| tree | a5fe265ecaca05ee4203d8d0793830924ebd40c5 /fs/ext4/inline.c | |
| parent | 68ba825a3988d4c491953f3792f13da74e302963 (diff) | |
ALSA: pcm: Fix mutex unbalance in OSS emulation ioctls
commit f6d297df4dd47ef949540e4a201230d0c5308325 upstream.
The previous fix 40cab6e88cb0 ("ALSA: pcm: Return -EBUSY for OSS
ioctls changing busy streams") introduced some mutex unbalance; the
check of runtime->oss.rw_ref was inserted in a wrong place after the
mutex lock.
This patch fixes the inconsistency by rewriting with the helper
functions to lock/unlock parameters with the stream check.
Fixes: 40cab6e88cb0 ("ALSA: pcm: Return -EBUSY for OSS ioctls changing busy streams")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4/inline.c')
0 files changed, 0 insertions, 0 deletions
