aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-async.c
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2021-04-27 08:38:33 +0000
committerMauro Carvalho Chehab <[email protected]>2021-05-25 15:02:26 +0000
commitc3bf5129f33923c92bf3bddaf4359b7b25ecb4ba (patch)
tree96755503c48c5bf7e0044215131dcbcd365f2b85 /drivers/media/v4l2-core/v4l2-async.c
parentmedia: imx: imx7_mipi_csis: Update MAINTAINERS (diff)
downloadkernel-c3bf5129f33923c92bf3bddaf4359b7b25ecb4ba.tar.gz
kernel-c3bf5129f33923c92bf3bddaf4359b7b25ecb4ba.zip
media: v4l2-ctrls: always copy the controls on completion
When v4l2_ctrl_request_complete() is called and there is no control handler object found in the request, then create such an object so that all controls at completion state can be stored and are available to userspace. Otherwise any attempt by userspace to read the completed request data will fail. If allocating the control handler object failed, then indicate that by returning ENOMEM when attempting to get the controls from the completed request instead of returning ENOENT. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-async.c')
0 files changed, 0 insertions, 0 deletions