diff options
author | Patrick Boettcher <devnull@localhost> | 2005-04-06 10:00:49 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2005-04-06 10:00:49 +0000 |
commit | 710bef0b48987f6075c8383911a88d1f052980f9 (patch) | |
tree | 7c421c87cf25ed526024fb48a238b11eeda914f7 /linux/drivers/media/dvb/frontends/dib3000mc.c | |
parent | 26b5a408dd2fbdfb25f35bf2c12fe1f822c3cce7 (diff) | |
download | mediapointer-dvb-s2-710bef0b48987f6075c8383911a88d1f052980f9.tar.gz mediapointer-dvb-s2-710bef0b48987f6075c8383911a88d1f052980f9.tar.bz2 |
small NULL checks which lead to segfaults, when doing developing
Diffstat (limited to 'linux/drivers/media/dvb/frontends/dib3000mc.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/dib3000mc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/dib3000mc.c b/linux/drivers/media/dvb/frontends/dib3000mc.c index 81edcd413..3657063bb 100644 --- a/linux/drivers/media/dvb/frontends/dib3000mc.c +++ b/linux/drivers/media/dvb/frontends/dib3000mc.c @@ -463,7 +463,7 @@ static int dib3000mc_set_frontend(struct dvb_frontend* fe, int search_state,auto_val; u16 val; - if (tuner) { /* initial call from dvb */ + if (tuner && state->config.pll_addr && state->config.pll_set) { /* initial call from dvb */ dib3000mc_tuner_pass_ctrl(fe,1,state->config.pll_addr(fe)); state->config.pll_set(fe,fep,NULL); dib3000mc_tuner_pass_ctrl(fe,0,state->config.pll_addr(fe)); |