Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
r820t: Use correct variable size for sum to prevent overflow
Correct the initialization values at the start.
  • Loading branch information
Benjamin Larsson committed Dec 16, 2013
1 parent fa507e4 commit 15eb33c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/tuners/r820t.c
Expand Up @@ -1468,7 +1468,8 @@ static int r820t_imr_prepare(struct r820t_priv *priv)
static int r820t_multi_read(struct r820t_priv *priv)
{
int rc, i;
u8 data[2], min = 0, max = 255, sum = 0;
u16 sum = 0;
u8 data[2], min = 255, max = 0;

usleep_range(5000, 6000);

Expand Down

0 comments on commit 15eb33c

Please sign in to comment.