From: Andreas Regel Date: Tue, 5 Jan 2010 22:21:02 +0000 (-0300) Subject: V4L/DVB (13977): [STV090x] Test for valid frequency before starting to tune X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=729cbafaca5e24b4fa0b42e7b0f79cb53f2ebad5;p=deliverable%2Flinux.git V4L/DVB (13977): [STV090x] Test for valid frequency before starting to tune Signed-off-by: Andreas Regel Signed-off-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c index e903334a8323..3bdbce21de9e 100644 --- a/drivers/media/dvb/frontends/stv090x.c +++ b/drivers/media/dvb/frontends/stv090x.c @@ -3393,6 +3393,9 @@ static enum dvbfe_search stv090x_search(struct dvb_frontend *fe, struct dvb_fron struct stv090x_state *state = fe->demodulator_priv; struct dtv_frontend_properties *props = &fe->dtv_property_cache; + if (p->frequency == 0) + return DVBFE_ALGO_SEARCH_INVALID; + state->delsys = props->delivery_system; state->frequency = p->frequency; state->srate = p->u.qpsk.symbol_rate;