]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: seq: Fix incorrect sanity check at snd_seq_oss_synth_cleanup()
authorTakashi Iwai <tiwai@suse.de>
Mon, 25 Jan 2016 10:01:47 +0000 (11:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Jan 2016 10:49:10 +0000 (11:49 +0100)
commite82eb19565860ae7b11966575e5830c20c0ba1b7
treef4578dfa11b3e8a3528b3bab3c67ae1acd3a402d
parent5367e65a538f2d59834d845f582bc1f1ae9599b8
ALSA: seq: Fix incorrect sanity check at snd_seq_oss_synth_cleanup()

ALSA sequencer OSS emulation code has a sanity check for currently
opened devices, but there is a thinko there, eventually it spews
warnings and skips the operation wrongly like:
  WARNING: CPU: 1 PID: 7573 at sound/core/seq/oss/seq_oss_synth.c:311

Fix this off-by-one error.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/oss/seq_oss_synth.c