[media] v4l: Fix a use-before-set in the control framework
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 7 Dec 2010 11:57:25 +0000 (08:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:52:10 +0000 (11:52 -0200)
commiteac9aa005a2e0676d07f1906f9933fd055eb1f0b
tree8345ab2b708e729163f14bb74a68f328c188a2eb
parent01c40c048b0f3f377e6d27b35fd99f04efcc21dd
[media] v4l: Fix a use-before-set in the control framework

v4l2_queryctrl sets the step value based on the control type. That would
be fine if it used the control type stored in the V4L2 kernel control
object, not the one stored in the userspace ioctl structure that has
just been memset to 0. Fix this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ctrls.c
This page took 0.049216 seconds and 5 git commands to generate.