mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
7bd8009156
commit
85d59b57be
1 changed files with 0 additions and 1 deletions
|
@ -1846,7 +1846,6 @@ static int snd_seq_ioctl_set_client_pool(struct snd_seq_client *client,
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
/* remove all existing cells */
|
/* remove all existing cells */
|
||||||
snd_seq_pool_mark_closing(client->pool);
|
snd_seq_pool_mark_closing(client->pool);
|
||||||
snd_seq_queue_client_leave_cells(client->number);
|
|
||||||
snd_seq_pool_done(client->pool);
|
snd_seq_pool_done(client->pool);
|
||||||
}
|
}
|
||||||
client->pool->size = info->output_pool;
|
client->pool->size = info->output_pool;
|
||||||
|
|
Loading…
Add table
Reference in a new issue