Commit 60dfee83 authored by Miroslav Slugen's avatar Miroslav Slugen Committed by Greg Kroah-Hartman

cx23885-dvb: check if dvb_attach() succeded

commit a7c8aada upstream.

Fix possible null dereference for Leadtek DTV 3200H
XC4000 tuner when no firmware file available.
Signed-off-by: default avatarMiroslav Slugen <thunder.mmm@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c893fe01
...@@ -940,6 +940,11 @@ static int dvb_register(struct cx23885_tsport *port) ...@@ -940,6 +940,11 @@ static int dvb_register(struct cx23885_tsport *port)
fe = dvb_attach(xc4000_attach, fe0->dvb.frontend, fe = dvb_attach(xc4000_attach, fe0->dvb.frontend,
&dev->i2c_bus[1].i2c_adap, &cfg); &dev->i2c_bus[1].i2c_adap, &cfg);
if (!fe) {
printk(KERN_ERR "%s/2: xc4000 attach failed\n",
dev->name);
goto frontend_detach;
}
} }
break; break;
case CX23885_BOARD_TBS_6920: case CX23885_BOARD_TBS_6920:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment