diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-10-25 11:00:43 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-10-25 11:00:43 +0300 |
commit | 20e5f8bfb153bdd43b5be194658f8ad814470a5d (patch) | |
tree | 7989623430877bfdbb32e446b8f7ce64c0de3555 /sound/i2c | |
parent | 4f928246f0e8f9bda88f41131ec447a1b8193dbc (diff) | |
download | linux-20e5f8bfb153bdd43b5be194658f8ad814470a5d.tar.xz |
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/i2c')
0 files changed, 0 insertions, 0 deletions