mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 08:46:36 +09:00
cx23885-dvb: check if dvb_attach() succeded
commit a7c8aadad3 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c893fe01b3
commit
60dfee83be
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user