diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-09-03 10:58:39 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-09-03 10:58:39 +0200 |
commit | cd769da3e1c2c4f4263f6fd9ad8c0f928219243f (patch) | |
tree | c4f1d9e408e42f56dfa1916b2a55219267dc4f14 | |
parent | 7c1f86e3a70c1074929a10c0379f6a7a71a8a000 (diff) | |
download | v4l-utils-cd769da3e1c2c4f4263f6fd9ad8c0f928219243f.tar.gz |
v4l2-compliance: add 0 check for v4l2_event reserved field
This check was missing, add it.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | utils/v4l2-compliance/v4l2-test-controls.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-controls.cpp b/utils/v4l2-compliance/v4l2-test-controls.cpp index 07685d72..22e8decc 100644 --- a/utils/v4l2-compliance/v4l2-test-controls.cpp +++ b/utils/v4l2-compliance/v4l2-test-controls.cpp @@ -886,6 +886,7 @@ int testEvents(struct node *node) return fail("couldn't get event for control '%s'\n", qctrl.name); if (ev.type != V4L2_EVENT_CTRL || ev.id != qctrl.id) return fail("dequeued wrong event\n"); + fail_on_test(check_0(ev.reserved, sizeof(ev.reserved))); } ret = doioctl(node, VIDIOC_UNSUBSCRIBE_EVENT, &sub); if (ret) |