Skip to content

Commit 85d59b5

Browse files
committed
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>
1 parent 7bd8009 commit 85d59b5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sound/core/seq/seq_clientmgr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,6 @@ static int snd_seq_ioctl_set_client_pool(struct snd_seq_client *client,
18461846
return -EBUSY;
18471847
/* remove all existing cells */
18481848
snd_seq_pool_mark_closing(client->pool);
1849-
snd_seq_queue_client_leave_cells(client->number);
18501849
snd_seq_pool_done(client->pool);
18511850
}
18521851
client->pool->size = info->output_pool;

0 commit comments

Comments
 (0)