media: i2c: ov7670: 0 instead of -EINVAL was returned
stable inclusion from stable-v5.10.173 commit cc2f9c8eb1ee470e055d6d383027077d072899d8 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cc2f9c8eb1ee470e055d6d383027077d072899d8 -------------------------------- [ Upstream commit 6a4c6645 ] If the media bus is unsupported, then return -EINVAL. Instead it returned 'ret' which happened to be 0. This fixes a smatch warning: ov7670.c:1843 ov7670_parse_dt() warn: missing error code? 'ret' Signed-off-by:Hans Verkuil <hverkuil-cisco@xs4all.nl> Fixes: 01b84448 ("media: v4l2: i2c: ov7670: Implement OF mbus configuration") Acked-by:
Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment