Commit 07d48a4c authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Emil Velikov

modetest: Fix segmentation fault

When a mode is set with just a connector "-s foo",
we get a nasty segmentation fault. Fix it.
Signed-off-by: default avatarEzequiel Garcia <>
Reviewed-by: default avatarEmil Velikov <>
parent 899da0f4
Pipeline #100287 passed with stage
in 2 minutes and 53 seconds
......@@ -1721,6 +1721,8 @@ static int parse_connector(struct pipe_arg *pipe, const char *arg)
return -1;
/* Parse the remaining parameters. */
if (!endp)
return -1;
if (*endp == '@') {
arg = endp + 1;
pipe->crtc_id = strtoul(arg, &endp, 10);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment