This is an automated email from the ASF dual-hosted git repository. linguini pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 24a18d33af943988965e713e072fc623c946f596 Author: yaojingwei <[email protected]> AuthorDate: Wed Nov 19 19:53:07 2025 +0800 v4l2_cap: fix reqbuf return error when set count = 0. Return success when reqbuf count is zero. Signed-off-by: yaojingwei <[email protected]> --- drivers/video/v4l2_cap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/video/v4l2_cap.c b/drivers/video/v4l2_cap.c index 6ccb1473a97..9967450cf86 100644 --- a/drivers/video/v4l2_cap.c +++ b/drivers/video/v4l2_cap.c @@ -2180,6 +2180,11 @@ static int capture_reqbufs(FAR struct file *filep, return -EINVAL; } + if (reqbufs->count == 0) + { + return 0; + } + imgdata = cmng->imgdata; type_inf = get_capture_type_inf(cmng, reqbufs->type); if (type_inf == NULL)
