From: Takashi Iwai Date: Mon, 25 Jan 2016 10:01:47 +0000 (+0100) Subject: ALSA: seq: Fix incorrect sanity check at snd_seq_oss_synth_cleanup() X-Git-Tag: v3.2.78~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd691a7b0dac25caf6a9ec69934c5b662735ab54;p=pandora-kernel.git ALSA: seq: Fix incorrect sanity check at snd_seq_oss_synth_cleanup() commit 599151336638d57b98d92338aa59c048e3a3e97d upstream. 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 Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed