]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: seq: Remove superfluous snd_seq_queue_client_leave_cells() call
authorTakashi Iwai <tiwai@suse.de>
Thu, 8 Mar 2018 11:01:25 +0000 (12:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Mar 2018 11:06:07 +0000 (12:06 +0100)
commitfe240cd0648e9da5816f6a4f9344ca56ee31184d
treeb03e3bac71822daff9bbeef34639155388315d56
parent01bcdf17bb92648367097d4a3b630173fe6861a8
ALSA: seq: Remove superfluous snd_seq_queue_client_leave_cells() call

With the previous two fixes for the write / ioctl races:
  ALSA: seq: Don't allow resizing pool in use
  ALSA: seq: More protection for concurrent write and ioctl races
the cells aren't any longer in queues at the point calling
snd_seq_pool_done() in snd_seq_ioctl_set_client_pool().  Hence the
function call snd_seq_queue_client_leave_cells() can be dropped safely
from there.

Suggested-by: Nicolai Stange <nstange@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c