summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/v4l2-ioctl.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-04-30 17:03:34 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2009-04-30 17:03:34 -0700
commite7a66d6a4c0fbf91c8105ef68c07327a235d06af (patch)
treee29746eb9f4b5ee6f027d9152a4e5b26a05e2683 /linux/drivers/media/video/v4l2-ioctl.c
parent537cb71bfbec21524737669b70ade038ae396346 (diff)
downloadmediapointer-dvb-s2-e7a66d6a4c0fbf91c8105ef68c07327a235d06af.tar.gz
mediapointer-dvb-s2-e7a66d6a4c0fbf91c8105ef68c07327a235d06af.tar.bz2
zoran: fix bug when enumerating format -1
From: Trent Piepho <xyzzy@speakeasy.org> If someone requests a format at fmt->index == (unsigned)-1 and the first format in the array doesn't have the requested type then num will still be -1 when it's compared to fmt->index and there will appear to be a match. Restructure the loop so this can't happen. It's simpler this way too. The unnecessary check for (unsigned)fmt->index < 0 found by Roel Kluin <roel.kluin@gmail.com> is removed this way too. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/v4l2-ioctl.c')
0 files changed, 0 insertions, 0 deletions