diff options
| author | Hans Verkuil <[email protected]> | 2017-03-30 09:05:25 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-04-10 07:27:09 -0300 |
| commit | ba7ed691dcce1a4921ea92b8bf75af52f5e504f6 (patch) | |
| tree | 43547c2e00aa658291e15447545b2cf51111bcdb /tools/perf/scripts/python | |
| parent | 3369cde0afc1e6aa405768ccc83a406d385055ea (diff) | |
[media] v4l2-compat-ioctl32: VIDIOC_S_EDID should return all fields on error
Most ioctls do not have to write back the contents of the argument
if an error is returned. But VIDIOC_S_EDID is an exception together
with the EXT_CTRLS ioctls (already handled correctly).
Add this exception to v4l2-compat-ioctl32.
This fixes a compliance error when using compat32 and trying to
set a new EDID with more blocks than the hardware supports. In
that case the driver will return -E2BIG and set edid.blocks to the
actual maximum number of blocks. This field was never copied back
to userspace due to this bug.
Signed-off-by: Hans Verkuil <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions