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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}