diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-10-25 10:00:43 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-10-25 10:00:43 +0200 |
commit | 20e5f8bfb153bdd43b5be194658f8ad814470a5d (patch) | |
tree | 7989623430877bfdbb32e446b8f7ce64c0de3555 /sound/pci/rme9652 | |
parent | ALSA: sb: Convert timers to use timer_setup() (diff) | |
download | linux-20e5f8bfb153bdd43b5be194658f8ad814470a5d.tar.xz linux-20e5f8bfb153bdd43b5be194658f8ad814470a5d.zip |
ALSA: sb: Minor optimization / fix of timer usage in sb8_midi.c
Currently the SB8 MIDI code sets up the timer object at each time
before scheduling it at trigger callback, but basically this is
superfluous once after set up. Also, the code misses the
del_timer_sync() call that may leave a race condition for
use-after-free.
This patch addresses these issues, moving timer_setup() to
snd_sb8dsp_midi(), and adding the del_timer_sync() call at
snd_sb8dsp_midi_output_trigger() to make sure.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/rme9652')
0 files changed, 0 insertions, 0 deletions