[media] v4l2-ctrls: fix missing 'read-only' check
commitc959acfddb3d24ecfdae1a280a7a1785d9df81d1
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 16 Jan 2011 14:03:28 +0000 (16 11:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:46:14 +0000 (19 11:46 -0200)
treeb8ead8b3c9e3720c0bbcabaa06f68c85805c219e
parent4999e27a62eaf28e88bc69ab8cf11697e0dda261
[media] v4l2-ctrls: fix missing 'read-only' check

VIDIOC_S_CTRL did not check against read-only controls. Even worse, for
controls of type CTRL_CLASS it would cause a kernel oops since those controls
do not have a s_ctrl op.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ctrls.c