Re: [PATCH FOR 2.6.37] v4l: Fix a use-before-set in the control framework

2010-12-03 Thread Hans Verkuil
On Friday, December 03, 2010 14:15:43 Laurent Pinchart wrote: > 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

[PATCH FOR 2.6.37] v4l: Fix a use-before-set in the control framework

2010-12-03 Thread Laurent Pinchart
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 --- drivers/media/v