]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (8026): Avoids an OOPS if dev struct can't be successfully recovered
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 14 Jun 2008 12:41:18 +0000 (09:41 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 26 Jun 2008 18:58:47 +0000 (15:58 -0300)
commit83ee87a31dc43a5fd6dee3562c146033c3a4cb39
tree3c8070786261f4994209328901bda6b183077e3c
parent913f5fc209247b607b1994a710315966f4f9d358
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 <mchehab@infradead.org>
drivers/media/video/cx88/cx88-alsa.c
drivers/media/video/em28xx/em28xx-audio.c
drivers/media/video/saa7134/saa7134-alsa.c