Commit d772bd03 authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab

V4L/DVB (4211): Fix an Oops for all fe that have get_frontend_algo == NULL

Thanks to Johannes Stezenbach for pointing it out
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent fcc18e83
...@@ -556,21 +556,23 @@ static int dvb_frontend_thread(void *data) ...@@ -556,21 +556,23 @@ static int dvb_frontend_thread(void *data)
} }
/* do an iteration of the tuning loop */ /* do an iteration of the tuning loop */
if (fe->ops.get_frontend_algo(fe) == FE_ALGO_HW) { if (fe->ops.get_frontend_algo) {
/* have we been asked to retune? */ if (fe->ops.get_frontend_algo(fe) == FE_ALGO_HW) {
params = NULL; /* have we been asked to retune? */
if (fepriv->state & FESTATE_RETUNE) { params = NULL;
params = &fepriv->parameters; if (fepriv->state & FESTATE_RETUNE) {
fepriv->state = FESTATE_TUNED; params = &fepriv->parameters;
} fepriv->state = FESTATE_TUNED;
}
fe->ops.tune(fe, params, fepriv->tune_mode_flags, &fepriv->delay, &s); fe->ops.tune(fe, params, fepriv->tune_mode_flags, &fepriv->delay, &s);
if (s != fepriv->status) { if (s != fepriv->status) {
dvb_frontend_add_event(fe, s); dvb_frontend_add_event(fe, s);
fepriv->status = s; fepriv->status = s;
}
} else {
dvb_frontend_swzigzag(fe);
} }
} else {
dvb_frontend_swzigzag(fe);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment