]> 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)
commit48739ebcf6f040cac03cf47b3f27aa7290314c00
treec7a685313111ffdc4c3e8e365b4eb849e341447f
parent4c7141c2d95b1de879d6c0a54e5f63bc3250abc8
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