mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
media: camss: missing error code in msm_video_register()
[ Upstream commit9c67ed2ab2] This error path returns success but it should return -EINVAL. Fixes:cba3819d1e("media: camss: Format configuration per hardware version") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Robert Foss <robert.foss@linaro.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
27a82f52a5
commit
df6f92f1bd
@@ -979,6 +979,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user