diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-08-15 16:38:40 +0200 |
---|---|---|
committer | Patrick Boettcher <pb@linuxtv.org> | 2006-08-15 16:38:40 +0200 |
commit | 04e963dbabd077673fbc46b533246190aebb95b5 (patch) | |
tree | c183c73524c7cce3d90465df332b2543f7f906c9 /linux/drivers/media/dvb/frontends | |
parent | 8d1d7873e0e1bc9f927f8c4e22c35279fde0f085 (diff) | |
download | mediapointer-dvb-s2-04e963dbabd077673fbc46b533246190aebb95b5.tar.gz mediapointer-dvb-s2-04e963dbabd077673fbc46b533246190aebb95b5.tar.bz2 |
drivers/media/dvb/dvb-usb/dibusb-mb.c: NULL dereference
From: Adrian Bunk <bunk@stusta.de>
The Coverity checker spotted the following "we dereference d->fe only
when we know it's NULL" bug:
<-- snip -->
...
static int dibusb_dib3000mb_frontend_attach(struct dvb_usb_device *d)
{
...
if ((d->fe = dib3000mb_attach(&demod_cfg,&d->i2c_adap,&st->ops)) == NULL) {
d->fe->ops.tuner_ops.init = dvb_usb_tuner_init_i2c;
d->fe->ops.tuner_ops.set_params = dvb_usb_tuner_set_params_i2c;
return -ENODEV;
}
...
<-- snip -->
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
0 files changed, 0 insertions, 0 deletions