Merge "ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS"

This commit is contained in:
Linux Build Service Account 2016-09-10 00:19:05 -07:00 committed by Gerrit - the friendly Code Review server
commit e1963e6e96

View file

@ -1683,6 +1683,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;