Commit 534c9214 authored by Benjamin Larsson's avatar Benjamin Larsson Committed by Mauro Carvalho Chehab

[media] r820t: fix size and init values

Correct the initialization values at the start of the function
and use proper variable sizes to prevent overflow.
Signed-off-by: default avatarBenjamin Larsson <benjamin@southpole.se>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 99b0f3c9
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment