]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: marvell-ccic: Add missed v4l2_async_notifier_cleanup()
authorChuhong Yuan <hslester96@gmail.com>
Wed, 3 Jun 2020 16:40:48 +0000 (18:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:47 +0000 (08:23 +0200)
commitd7ee98ff2dc20f1b4101d4a27e01b4282fcf23f0
tree8b542a9b5fc1b4973722c19b8ef01b6e513e6724
parent200a210582375e71f03ca5d849ea21fb537e3e16
media: marvell-ccic: Add missed v4l2_async_notifier_cleanup()

[ Upstream commit 4603a5b4a87ccd6fb90cbfa10195291cfcf6ba34 ]

mccic_register() forgets to cleanup the notifier in its error handler.
mccic_shutdown() also misses calling v4l2_async_notifier_cleanup().
Add the missed calls to fix them.

Fixes: 3eefe36cc00c ("media: marvell-ccic: use async notifier to get the sensor")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/marvell-ccic/mcam-core.c