aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2023-01-03 15:36:22 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-01-15 23:45:12 +0200
commita763b9fb58be869e252a7d33acb0a6390b01c801 (patch)
tree177060bb352348ce8f1ed792fa4c6540b5786546 /tools/perf/scripts/python/bin
parentmedia: uvcvideo: Return -EACCES for Wrong state error (diff)
downloadlinux-a763b9fb58be869e252a7d33acb0a6390b01c801.tar.gz
linux-a763b9fb58be869e252a7d33acb0a6390b01c801.zip
media: uvcvideo: Do not return positive errors in uvc_query_ctrl()
If the returned size of the query does not match the expected size or it is zero, return -EPIPE instead of 0 or a positive value. This will avoid confusing the caller (and ultimately userspace) that doesn't expect a positive or zero value. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions