diff options
author | Mariusz Kozlowski <mk@lab.zgora.pl> | 2011-03-26 15:23:56 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 09:28:26 -0300 |
commit | fd206508492caffaccc36cbfc40d3b1f8eeb1f0b (patch) | |
tree | 51a975111c3ac28431a93d137c304f48bf0dd70e /drivers/media/dvb/dvb-usb/dib0700_devices.c | |
parent | 92f6ed71cafae8580bd481db66edb81c3d9d958c (diff) | |
download | op-kernel-dev-fd206508492caffaccc36cbfc40d3b1f8eeb1f0b.zip op-kernel-dev-fd206508492caffaccc36cbfc40d3b1f8eeb1f0b.tar.gz |
[media] dib0700: fix possible NULL pointer dereference
Seems like 'adap->fe' test for NULL was meant to be before we dereference
that pointer.
Signed-off-by: Mariusz Kozlowski <mk@lab.zgora.pl>
Acked-by: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dib0700_devices.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dib0700_devices.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c index 65214af..5c01d25 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_devices.c +++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c @@ -2439,7 +2439,6 @@ static int tfe7090pvr_frontend0_attach(struct dvb_usb_adapter *adap) dib0700_set_i2c_speed(adap->dev, 340); adap->fe = dvb_attach(dib7000p_attach, &adap->dev->i2c_adap, 0x90, &tfe7090pvr_dib7000p_config[0]); - if (adap->fe == NULL) return -ENODEV; |