]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: msnd: Optimize / harden DSP and MIDI loops
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Jul 2017 10:34:40 +0000 (12:34 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 7 Jul 2017 13:34:57 +0000 (15:34 +0200)
commit20e2b791796bd68816fa115f12be5320de2b8021
tree3380b79080ccb2942cd976ddb16f54728e6b1b0f
parentf33f79f3d0e5caf04dd889cd7cf636261970f009
ALSA: msnd: Optimize / harden DSP and MIDI loops

The ISA msnd drivers have loops fetching the ring-buffer head, tail
and size values inside the loops.  Such codes are inefficient and
fragile.

This patch optimizes it, and also adds the sanity check to avoid the
endless loops.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=196131
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=196133
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/msnd/msnd_midi.c
sound/isa/msnd/msnd_pinnacle.c