Commit 3e09e5a7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by sanglipeng
Browse files

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: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Stable-dep-of: c766c90f ("media: rcar_fdp1: Fix refcount leak in probe and remove function")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 51bdc661
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment