diff options
| author | Laurent Pinchart <[email protected]> | 2022-09-26 19:31:51 +0300 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2022-10-24 19:03:53 +0200 |
| commit | b6bcdf763db1f5ea602bf876cfe91debfb3c7773 (patch) | |
| tree | 68f285ff79ea33bac287c9cf5ae3d45a3c6a2646 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 9047d90e9130e1544e0ef130aeda2913767c7d7c (diff) | |
media: v4l2-ctrls: Fix off-by-one error in integer menu control check
The V4L2 API defines the maximum value for an integer menu control as
the number of elements minus one. The v4l2_ctrl_new_std_menu() validates
this constraint with an off-by-one error. Fix it.
Fixes: d1e9b7c12b74 ("[media] V4L: Add support for integer menu controls with standard menu items")
Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions