Merge "ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS"

This commit is contained in:
Linux Build Service Account 2016-09-08 20:01:38 -07:00 committed by Gerrit - the friendly Code Review server
commit 3de15cf06e

View file

@ -1746,6 +1746,7 @@ static int snd_timer_user_params(struct file *file,
if (tu->timeri->flags & SNDRV_TIMER_IFLG_EARLY_EVENT) {
if (tu->tread) {
struct snd_timer_tread tread;
memset(&tread, 0, sizeof(tread));
tread.event = SNDRV_TIMER_EVENT_EARLY;
tread.tstamp.tv_sec = 0;
tread.tstamp.tv_nsec = 0;