Commit 9c67ed2a authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

media: camss: missing error code in msm_video_register()

This error path returns success but it should return -EINVAL.

Fixes: cba3819d ("media: camss: Format configuration per hardware version")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarRobert Foss <robert.foss@linaro.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent b00481bd
......@@ -961,6 +961,7 @@ int msm_video_register(struct camss_video *video, struct v4l2_device *v4l2_dev,
video->nformats = ARRAY_SIZE(formats_rdi_8x96);
}
} else {
ret = -EINVAL;
goto error_video_register;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment