]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:29:06 +0000 (16:29 -0300)
commit4bf577a1598cf4d74e26f066a07fdf36a30b7e1f
tree9636ad1b150aed4dc62d30186d231490945e7370
parent4388587473db7604469d45b182e339d98b9bf3c0
media: marvell-ccic: Add missed v4l2_async_notifier_cleanup()

BugLink: https://bugs.launchpad.net/bugs/1892417
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/media/platform/marvell-ccic/mcam-core.c