From: Mauro Carvalho Chehab Date: Sat, 14 Jun 2008 12:41:18 +0000 (-0300) Subject: V4L/DVB (8026): Avoids an OOPS if dev struct can't be successfully recovered X-Git-Tag: v2.6.26-rc9~91^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83ee87a31dc43a5fd6dee3562c146033c3a4cb39;p=pandora-kernel.git V4L/DVB (8026): Avoids an OOPS if dev struct can't be successfully recovered On some alsa versions, it seems that snd_pcm_substream_chip(substream) is returning a NULL pointer. This causes an OOPS, as reported by: https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/212271 https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/212960 This patch avoids the OOPS by not letting and open() succeed. Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed