From: Takashi Iwai Date: Wed, 5 Mar 2014 11:13:10 +0000 (+0100) Subject: ALSA: emu10k1: Fix possible NULL dereference X-Git-Tag: v3.15-rc1~142^2~3^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4913cd6964d9548d8636ac87e05b7db6c486add5;p=pandora-kernel.git ALSA: emu10k1: Fix possible NULL dereference The previous dev_err() conversion resulted in a code that may give NULL dereference in snd_emu10k1_ptr_write(). Since it's a sanity check, better to be replaced with a debug macro like other places in this driver. Fixes: 6f002b02166c ('ALSA: emu10k1: Use standard printk helpers') Reported-by: Dan Carpenter Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed