ALSA: timer: Fix leak in events via snd_timer_user_tinterrupt
authorKangjie Lu <kangjielu@gmail.com>
Tue, 3 May 2016 20:44:32 +0000 (16:44 -0400)
committerJiri Slaby <jslaby@suse.cz>
Thu, 21 Jul 2016 06:36:07 +0000 (08:36 +0200)
commitbdb8bc5f8fb05ce76a8d4e454fd2981501859020
tree7e105feb6d4f3149841344e96f0744bf7fbcf28b
parent640b1f79615c2b7dfba517aba7a8164c489da10c
ALSA: timer: Fix leak in events via snd_timer_user_tinterrupt

commit e4ec8cc8039a7063e24204299b462bd1383184a5 upstream.

The stack object “r1” has a total size of 32 bytes. Its field
“event” and “val” both contain 4 bytes padding. These 8 bytes
padding bytes are sent to user without being initialized.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
sound/core/timer.c