From: Bjørn Mork Date: Wed, 24 Mar 2010 13:30:15 +0000 (-0300) Subject: V4L/DVB: budget: Oops: "BUG: unable to handle kernel NULL pointer dereference" X-Git-Tag: v2.6.35-rc1~480^2~198 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd0bbcc626d8baa6821c6cb9c45ecf3759ef8088;p=pandora-kernel.git V4L/DVB: budget: Oops: "BUG: unable to handle kernel NULL pointer dereference" Never call dvb_frontend_detach if we failed to attach a frontend. This fixes the following oops: [ 8.172997] DVB: registering new adapter (TT-Budget S2-1600 PCI) [ 8.209018] adapter has MAC addr = 00:d0:5c:cc:a7:29 [ 8.328665] Intel ICH 0000:00:1f.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17 [ 8.328753] Intel ICH 0000:00:1f.5: setting latency timer to 64 [ 8.562047] DVB: Unable to find symbol stv090x_attach() [ 8.562117] BUG: unable to handle kernel NULL pointer dereference at 000000ac [ 8.562239] IP: [] dvb_frontend_detach+0x4/0x67 [dvb_core] Ref http://bugs.debian.org/575207 Also clean up if we are unable to register the tuner and LNB drivers [mchehab@redhat.com: add printk log level, to calm down chechpatch.pl] Signed-off-by: Bjørn Mork Reported-by: Fladischer Michael Acked-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed