mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
Merge "ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS"
This commit is contained in:
commit
e1963e6e96
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue