]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61862155ab25267c1b7e389ef9ccb11bdfd26db5
treec7a685313111ffdc4c3e8e365b4eb849e341447f
parente821b03ff6cb1c2b06e9ac3fd71b61a8de71a572
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