]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: timer: Fix wrong instance passed to slave callbacks
authorTakashi Iwai <tiwai@suse.de>
Mon, 8 Feb 2016 16:36:25 +0000 (17:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Feb 2016 16:40:08 +0000 (17:40 +0100)
commitc1a66f4d9ba743b3de3f17053888c1a0f58d8dcb
treebb10257504d6d43a811064afb3e03511c1fbb4d0
parent3bf247a70c0104c85421a26b91cf0ea9c8b17e11
ALSA: timer: Fix wrong instance passed to slave callbacks

In snd_timer_notify1(), the wrong timer instance was passed for slave
ccallback function.  This leads to the access to the wrong data when
an incompatible master is handled (e.g. the master is the sequencer
timer and the slave is a user timer), as spotted by syzkaller fuzzer.

This patch fixes that wrong assignment.

BugLink: http://lkml.kernel.org/r/CACT4Y+Y_Bm+7epAb=8Wi=AaWd+DYS7qawX52qxdCfOfY49vozQ@mail.gmail.com
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c