From: Takashi Iwai Date: Mon, 3 Nov 2008 07:17:05 +0000 (+0100) Subject: ALSA: rawmidi - Add open check in rawmidi callbacks X-Git-Tag: v2.6.28-rc4~92^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=219df32faec97349516c29f33008fea59a46e99a;p=pandora-kernel.git ALSA: rawmidi - Add open check in rawmidi callbacks The drivers (e.g. mtpav) may call rawmidi functions in irq handlers even though the streams are not opened. This results in Oops or panic. This patch adds the rawmidi state check before actually operating the rawmidi buffers. Tested-by: Ingo Molnar Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed