ALSA: timer: fix division by zero after SNDRV_TIMER_IOCTL_CONTINUE
[pandora-kernel.git] / sound / core / timer.c
index bce3fe0..7cf2dc8 100644 (file)
@@ -822,6 +822,7 @@ int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid,
        timer->tmr_subdevice = tid->subdevice;
        if (id)
                strlcpy(timer->id, id, sizeof(timer->id));
+       timer->sticks = 1;
        INIT_LIST_HEAD(&timer->device_list);
        INIT_LIST_HEAD(&timer->open_list_head);
        INIT_LIST_HEAD(&timer->active_list_head);