ALSA: timer: Info leak in snd_timer_user_tinterrupt()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 31 Mar 2017 15:22:23 +0000 (18:22 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 31 Mar 2017 15:27:05 +0000 (17:27 +0200)
commita8c006aafead3c45ae5d5601e3717055bccf41bc
treec7a685313111ffdc4c3e8e365b4eb849e341447f
parente8ed68205f39a7a934901eab80a5cbf3a062b7b4
ALSA: timer: Info leak in snd_timer_user_tinterrupt()

The "r1" struct has memory holes.  We clear it with memset on one path
where it is used but not the other.  Let's just memset it at the start
of the function so it's always safe.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c