Commit 4480b561404f ("Implement compound control set support") didn't properly parse control array values. Fix it. Fixes: 4480b561404f ("Implement compound control set support") Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> --- yavta.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yavta.c b/yavta.c index 86447f3f057d..bcdcddb1a8c5 100644 --- a/yavta.c +++ b/yavta.c @@ -1505,9 +1505,10 @@ static int video_parse_control_array(const struct v4l2_query_ext_ctrl *query, val = endptr; for ( ; isspace(*val); ++val) { }; - if (*val++ != ',') + if (*val != ',') break; - } + val++; + } if (i < query->elems - 1) return -EINVAL; -- Regards, Laurent Pinchart