diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-23 15:23:23 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-23 15:37:27 +0300 |
commit | 86b2989361df6fd9bb3f46518b5326775c76358d (patch) | |
tree | e9c09f4288f59bf15edaea63aad46252d306c4f6 /drivers/media/usb/dvb-usb-v2/Kconfig | |
parent | 98c1ce0ccff1617cba45e8ead236768a50545e7f (diff) | |
download | linux-86b2989361df6fd9bb3f46518b5326775c76358d.tar.xz |
media: uvc: to the right check at uvc_ioctl_enum_framesizes()
While the logic there is correct, it tricks both humans and
machines, a the check if "i" var is not zero is actually to
validate if the "frames" var was initialized when the loop
ran for the first time.
That produces the following warning:
drivers/media/usb/uvc/uvc_v4l2.c:1192 uvc_ioctl_enum_framesizes() error: potentially dereferencing uninitialized 'frame'.
Change the logic to do the right test instead.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/Kconfig')
0 files changed, 0 insertions, 0 deletions