mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 23:51:46 +00:00
V4L/DVB (11185): pvrusb2: Fix uninitialized counter
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
ae111f76f7
commit
3ab8d29515
@ -1979,7 +1979,7 @@ static unsigned int pvr2_copy_i2c_addr_list(
|
||||
unsigned short *dst, const unsigned char *src,
|
||||
unsigned int dst_max)
|
||||
{
|
||||
unsigned int cnt;
|
||||
unsigned int cnt = 0;
|
||||
if (!src) return 0;
|
||||
while (src[cnt] && (cnt + 1) < dst_max) {
|
||||
dst[cnt] = src[cnt];
|
||||
|
Loading…
Reference in New Issue
Block a user