Skip to content

Commit 73278d4

Browse files
Hans Verkuilmchehab
authored andcommitted
media: v4l2-ctrls-api.c: add back dropped ctrl->is_new = 1
The patch adding support for dynamically allocated arrays accidentally dropped the line setting ctrl->is_new to 1, thus new string values were always ignored. Fixes: fb582cb ("media: v4l2-ctrls: add support for dynamically allocated arrays.") Reported-by: Alice Yuan <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent cdb9d35 commit 73278d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/media/v4l2-core/v4l2-ctrls-api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ static int user_to_new(struct v4l2_ext_control *c, struct v4l2_ctrl *ctrl)
150150
* then return an error.
151151
*/
152152
if (strlen(ctrl->p_new.p_char) == ctrl->maximum && last)
153+
ctrl->is_new = 1;
153154
return -ERANGE;
154155
}
155156
return ret;

0 commit comments

Comments
 (0)