diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-09-08 20:01:38 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-08 20:01:38 -0700 |
| commit | 3de15cf06e84d521e8dbedc243fcf5964fa0f577 (patch) | |
| tree | 08beee94f3de3ef94604a24c4e0a2098b0efe7ce /sound/core/timer.c | |
| parent | 006f0558f2a9bae726119e0d3430a88007b481d4 (diff) | |
| parent | 33618e19f927a3f2ee1fc43af9ae8ab0e67dd5cc (diff) | |
Merge "ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS"
Diffstat (limited to 'sound/core/timer.c')
| -rw-r--r-- | sound/core/timer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c index b982d1b089bd..cfa3500a3327 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -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; |
