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)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 24 Aug 2016 05:08:34 +0000 (22:08 -0700)
commit3c6a383f9b5244254f2221a3dfa33c862ab38978
tree684b92c23b44ddb977e7b546080f57c20acc6383
parent016359327ecbdc9e2f7c1095054802b61a6293a2
ALSA: timer: Fix leak in events via snd_timer_user_tinterrupt

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.

Bug 1787007

Change-Id: I70d3702d220e0e192d8d582abc9fb0ac33566daf
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-on: http://git-master/r/1197222
(cherry picked from commit d99fadb0097c4058f3de8dc539f4088cc833976e)
Signed-off-by: Mithun Maragiri <mmaragiri@nvidia.com>
Reviewed-on: http://git-master/r/1203374
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
sound/core/timer.c