]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/core/timer.c
ALSA: timer: Fix missing queue indices reset at SNDRV_TIMER_IOCTL_SELECT
[karo-tx-linux.git] / sound / core / timer.c
index 1118bd8e2d3c273376f7b795d26136af4881c17f..cd67d1c12cf1ca9a32daa4de797dc0a5ec7bbb86 100644 (file)
@@ -1618,6 +1618,7 @@ static int snd_timer_user_tselect(struct file *file,
        if (err < 0)
                goto __err;
 
+       tu->qhead = tu->qtail = tu->qused = 0;
        kfree(tu->queue);
        tu->queue = NULL;
        kfree(tu->tqueue);