summaryrefslogtreecommitdiff
path: root/include/media/v4l2-mem2mem.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-03 13:34:48 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-03-06 00:48:56 +0300
commit2fae4d6aabc8fb2d49f40b12a8f82bf730216f99 (patch)
tree48fc14cbb531f8e27e7799cc95e4ed9937cbcddf /include/media/v4l2-mem2mem.h
parent34217262898a4c2cc5bef4ca476e9fb9f0bf19a8 (diff)
downloadlinux-2fae4d6aabc8fb2d49f40b12a8f82bf730216f99.tar.xz
media: v4l2-ctrls: v4l2_ctrl_request_complete() should always set ref->req
When the request is completed, all controls are copied to the request object. However, when VIDIOC_G_EXT_CTRLS attempts to read control values from the request it will read the current value instead for any control reference that has a NULL ref->req pointer. But that's wrong: after completing the request *all* controls should have a non-NULL ref->req pointer since they are after all copied to the request. So set ref->req if it wasn't set already. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media/v4l2-mem2mem.h')
0 files changed, 0 insertions, 0 deletions