From: Jesper Juhl Date: Tue, 13 Jun 2006 09:58:12 +0000 (+0200) Subject: [ALSA] fix potential NULL pointer deref in snd_sb8dsp_midi_interrupt() X-Git-Tag: v2.6.18-rc1~1081^2~261 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63eb1e4bd2975f1d1102c1f44e4fd6fcd76f7792;p=pandora-kernel.git [ALSA] fix potential NULL pointer deref in snd_sb8dsp_midi_interrupt() First testing if a pointer is NULL and if it is (or might be), proceeding with code that dereferences that same pointer is clearly a mistake. This happens in sound/isa/sb/sb8_midi.c::snd_sb8dsp_midi_interrupt() The patch below reworks the code so this unfortunate case doesn't happen. Also remove some blank comments. Found by the Coverity checker as bug #367 Patch is compile testted only due to lack of hardware. Signed-off-by: Jesper Juhl Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed