|
@@ -267,6 +267,10 @@ int snd_seq_fifo_resize(struct snd_seq_fifo *f, int poolsize)
|
|
/* NOTE: overflow flag is not cleared */
|
|
/* NOTE: overflow flag is not cleared */
|
|
spin_unlock_irqrestore(&f->lock, flags);
|
|
spin_unlock_irqrestore(&f->lock, flags);
|
|
|
|
|
|
|
|
+ /* close the old pool and wait until all users are gone */
|
|
|
|
+ snd_seq_pool_mark_closing(oldpool);
|
|
|
|
+ snd_use_lock_sync(&f->use_lock);
|
|
|
|
+
|
|
/* release cells in old pool */
|
|
/* release cells in old pool */
|
|
for (cell = oldhead; cell; cell = next) {
|
|
for (cell = oldhead; cell; cell = next) {
|
|
next = cell->next;
|
|
next = cell->next;
|