Merge "ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS"
This commit is contained in:
commit
3de15cf06e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue