]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: cec: use call_op and check for !unregistered
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 17 Mar 2022 08:51:20 +0000 (08:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:45 +0000 (13:39 +0200)
commit1d1d76a69961c6e18d60178ad441bd35ec4b1b13
tree7e66ea4de93ea96bb87cf3422bd647e111d4f4eb
parent54e5e151eb4ffd421b6e3e34023b027cc9350957
media: cec: use call_op and check for !unregistered

[ Upstream commit e2ed5024ac2bc27d4bfc99fd58f5ab54de8fa965 ]

Use call_(void_)op consistently in the CEC core framework. Ditto
for the cec pin ops. And check if !adap->devnode.unregistered before
calling each op. This avoids calls to ops when the device has been
unregistered and the underlying hardware may be gone.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Stable-dep-of: 47c82aac10a6 ("media: cec: core: avoid recursive cec_claim_log_addrs")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/cec/core/cec-adap.c
drivers/media/cec/core/cec-api.c
drivers/media/cec/core/cec-core.c
drivers/media/cec/core/cec-pin-priv.h
drivers/media/cec/core/cec-pin.c
drivers/media/cec/core/cec-priv.h