提交 02ec9d8f 编写于 作者: R Reinhard Nissl 提交者: Mauro Carvalho Chehab

V4L/DVB (9446): Bug Fix an overflow in bandwidth calculation

Signed-off-by: NReinhard Nissl <rnissl@gmx.de>
Signed-off-by: NManu Abraham <manu@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 89693b7d
......@@ -1593,7 +1593,7 @@ static enum dvbfe_search stb0899_search(struct dvb_frontend *fe, struct dvbfe_pa
/* What to do for tuners having no bandwidth setup ? */
if (state->config->tuner_set_bandwidth)
state->config->tuner_set_bandwidth(fe, (135 * (stb0899_carr_width(state) + SearchRange)) / 100);
state->config->tuner_set_bandwidth(fe, (13 * (stb0899_carr_width(state) + SearchRange)) / 10);
if (state->config->tuner_get_bandwidth)
state->config->tuner_get_bandwidth(fe, &internal->tuner_bw);
/* Set DVB-S1 AGC */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册