]> git.baikalelectronics.ru Git - kernel.git/commit
media: media requests: return EBADR instead of EACCES
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 20 Mar 2019 14:31:18 +0000 (10:31 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 25 Mar 2019 17:26:10 +0000 (13:26 -0400)
commit136aba9610c649b4e97504e44d6f9d052b76077f
tree344ececbb149b53b0ebb24d4149a26a247440c58
parent2dd33be0d5c1ab26f97e3dd77b7e70aa9ab22a9f
media: media requests: return EBADR instead of EACCES

If requests are used when they shouldn't, or not used when they should,
then return EBADR (Invalid request descriptor) instead of EACCES.

The reason for this change is that EACCES has more to do with permissions
(not being the owner of the resource), but in this case the request file
descriptor is just wrong for the current mode of the device.

Update the documentation accordingly.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/media/uapi/mediactl/request-api.rst
Documentation/media/uapi/v4l/buffer.rst
Documentation/media/uapi/v4l/vidioc-qbuf.rst
drivers/media/common/videobuf2/videobuf2-v4l2.c
drivers/media/media-request.c
include/media/media-request.h