Linux Kernels

V4L/DVB (9438): Bug! RTF is signed

This change “V4L/DVB (9438): Bug! RTF is signed” (commit eadf29b) in Linux kernel is authored by Arvo Jarve <arvo [at] softshark.ee> on Fri Nov 9 17:24:45 2007 -0300.

Description of "V4L/DVB (9438): Bug! RTF is signed"

The change “V4L/DVB (9438): Bug! RTF is signed” introduces changes as follows.

V4L/DVB (9438): Bug! RTF is signed

Signed-off-by: Arvo Jarve <arvo@softshark.ee>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

Linux kernel releases containing commit eadf29b

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "V4L/DVB (9438): Bug! RTF is signed"

There are 5 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/media/dvb/frontends/stb0899_algo.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
 
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c
index 1363ae396f9e..2256fc70c85a 100644
--- a/drivers/media/dvb/frontends/stb0899_algo.c
+++ b/drivers/media/dvb/frontends/stb0899_algo.c
@@ -194,8 +194,9 @@ static void stb0899_first_subrange(struct stb0899_state *state)
 static enum stb0899_status stb0899_check_tmg(struct stb0899_state *state)
 {
 	struct stb0899_internal *internal = &state->internal;
-	int lock, timing;
+	int lock;
 	u8 reg;
+	s8 timing;
 
 	msleep(internal->t_timing);
 
@@ -207,7 +208,7 @@ static enum stb0899_status stb0899_check_tmg(struct stb0899_state *state)
 	timing = stb0899_read_reg(state, STB0899_RTF);
 
 	if (lock >= 42) {
-		if ((lock > 48) && (timing >= 110)) {
+		if ((lock > 48) && (ABS(timing) >= 110)) {
 			internal->status = ANALOGCARRIER;
 			dprintk(state->verbose, FE_DEBUG, 1, "-->ANALOG Carrier !");
 		} else {

The commit for this change in Linux stable tree is eadf29b (patch).

Last modified: 2020/01/11 06:54