Skip to contentSkip to conversation

dvb: negative value assigned to unsigned int in CDRXD().

PATCH In review santosh nayak 2 participants 2 messages Mar 7, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dvb: negative value assigned to unsigned int in CDRXD().

From: Santosh Nayak <[email protected]>

In CDRXD(), Negative number is assigned to unsigned variable 'state->noise_cal.tdCal2.

Members of 'SNoiseCal' should be 'signed short'.

---
 drivers/media/dvb/frontends/drxd_hard.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/media/dvb/frontends/drxd_hard.c +3 -3
index 7bf39cd..f380eb4 100644
@@ -101,9 +101,9 @@ struct SCfgAgc {
 
 struct SNoiseCal {
 	int cpOpt;
-	u16 cpNexpOfs;
-	u16 tdCal2k;
-	u16 tdCal8k;
+	short cpNexpOfs;
+	short tdCal2k;
+	short tdCal8k;
 };
 
 enum app_env {
Signature · 1 line
1.7.4.4
#1 lore raw
Quoted 7 lines · santosh nayak

From: Santosh Nayak <[email protected]>

In CDRXD(), Negative number is assigned to unsigned variable 'state->noise_cal.tdCal2.

Members of 'SNoiseCal' should be 'signed short'.

In your changelogs could you please write something about how this change will affect what the user sees. That way users know if it fixes something they care about and they will apply your patch.

regards,
dan carpenter