media: rcar_fdp1: simplify error check logic at fdp_open()
stable inclusion from stable-v5.10.180 commit 21de9d0daab1a98635bfd2b2afb9abe346691d18 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=21de9d0daab1a98635bfd2b2afb9abe346691d18 -------------------------------- [ Upstream commit fa9f443f ] Avoid some code duplication by moving the common error path logic at fdp_open(). Signed-off-by:Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Stable-dep-of: c766c90f ("media: rcar_fdp1: Fix refcount leak in probe and remove function") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment