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 | |
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
-rw-r--r-- | linux/drivers/media/dvb/frontends/dib3000mb.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/dvb/frontends/dib3000mc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/dib3000mb.c b/linux/drivers/media/dvb/frontends/dib3000mb.c index f2fbb7c15..6f52d649e 100644 --- a/linux/drivers/media/dvb/frontends/dib3000mb.c +++ b/linux/drivers/media/dvb/frontends/dib3000mb.c @@ -61,7 +61,7 @@ static int dib3000mb_set_frontend(struct dvb_frontend* fe, fe_code_rate_t fe_cr = FEC_NONE; int search_state, seq; - if (tuner) { + if (tuner && state->config.pll_addr && state->config.pll_set) { dib3000mb_tuner_pass_ctrl(fe,1,state->config.pll_addr(fe)); state->config.pll_set(fe, fep, NULL); dib3000mb_tuner_pass_ctrl(fe,0,state->config.pll_addr(fe)); 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)); |