mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-26 13:57:59 +00:00
189ce92b4c
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From 3fcecb64e1ce21bda3d69718f0fefa1ed0d7f06b Mon Sep 17 00:00:00 2001
|
|
From: Miroslav Slugen <thunder.mmm@gmail.com>
|
|
Date: Sun, 11 Dec 2011 18:57:58 -0300
|
|
Subject: [PATCH 109/129] cx23885-dvb: check if dvb_attach() succeded
|
|
|
|
commit a7c8aadad39428b64d26c3971d967f8314e2397d upstream.
|
|
|
|
Fix possible null dereference for Leadtek DTV 3200H
|
|
XC4000 tuner when no firmware file available.
|
|
|
|
Signed-off-by: Miroslav Slugen <thunder.mmm@gmail.com>
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
|
---
|
|
drivers/media/video/cx23885/cx23885-dvb.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
|
|
index bcb45be..f0482b2 100644
|
|
--- a/drivers/media/video/cx23885/cx23885-dvb.c
|
|
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
|
|
@@ -940,6 +940,11 @@ static int dvb_register(struct cx23885_tsport *port)
|
|
|
|
fe = dvb_attach(xc4000_attach, fe0->dvb.frontend,
|
|
&dev->i2c_bus[1].i2c_adap, &cfg);
|
|
+ if (!fe) {
|
|
+ printk(KERN_ERR "%s/2: xc4000 attach failed\n",
|
|
+ dev->name);
|
|
+ goto frontend_detach;
|
|
+ }
|
|
}
|
|
break;
|
|
case CX23885_BOARD_TBS_6920:
|
|
--
|
|
1.7.9.5
|
|
|