[PATCH] dvb: dib3000: add NULL pointer check
prevent NULL pointer related Oopses (Patrick Boettcher) Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Родитель
b8742700f1
Коммит
b1471c4f67
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче