Skip to content
Commit b5fd12d6 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: seq: Correct unlock sequence at snd_seq_client_ioctl_unlock()



The doubly unlock sequence at snd_seq_client_ioctl_unlock() is tricky.
I took a direct unref call since I thought it would avoid
misunderstanding, but rather this seems more confusing.  Let's use
snd_seq_client_unlock() consistently even if they look strange to be
called twice, and add more comments for avoiding reader's confusion.

Fixes: 6b580f52 ("ALSA: seq: Protect racy pool manipulation from OSS sequencer")
Reviewed-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 46f5710f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment