Skip to contentSkip to conversation

ALSA: seq: Remove superfluous snd_seq_queue_client_leave_cells() call

PATCH New Takashi Iwai 1 participant 1 message Mar 8, 2018 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 sound/core/seq/seq_clientmgr.c | 1 -
 1 file changed, 1 deletion(-)
sound/core/seq/seq_clientmgr.c +0 -1
index 1b62421dadd1..918338dea5b9 100644
@@ -1846,7 +1846,6 @@ static int snd_seq_ioctl_set_client_pool(struct snd_seq_client *client,
 				return -EBUSY;
 			/* remove all existing cells */
 			snd_seq_pool_mark_closing(client->pool);
-			snd_seq_queue_client_leave_cells(client->number);
 			snd_seq_pool_done(client->pool);
 		}
 		client->pool->size = info->output_pool;
Signature · 1 line
2.16.2