]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 19 Jun 2019 09:21:33 +0000 (05:21 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 19:01:07 +0000 (15:01 -0400)
commitc7014d387b2098763511a2b0a1a3f0daf100199f
tree1a50d61e28744349667265537873283aefe0dc88
parent5f38cc7381ad05119fcc58e475157369b9ef4ef9
media: v4l2: Test type instead of cfg->type in v4l2_ctrl_new_custom()

cfg->type can be overridden by v4l2_ctrl_fill() and the new value is
stored in the local type var. Fix the tests to use this local var.

Fixes: 980fac7784a2 ("V4L/DVB: v4l2: Add new control handling framework")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
[hverkuil-cisco@xs4all.nl: change to !qmenu and !qmenu_int (checkpatch)]
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls.c