aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2018-03-27 12:32:23 +0000
committerTakashi Iwai <[email protected]>2018-03-27 14:20:02 +0000
commitf6d297df4dd47ef949540e4a201230d0c5308325 (patch)
treea270d39499d36075969c0a709a1a00a0d8d9d966 /lib/mpi/mpi-inline.h
parentALSA: aloop: Mark paused device as inactive (diff)
downloadkernel-f6d297df4dd47ef949540e4a201230d0c5308325.tar.gz
kernel-f6d297df4dd47ef949540e4a201230d0c5308325.zip
ALSA: pcm: Fix mutex unbalance in OSS emulation ioctls
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 <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions