linux/drivers/staging/media
Ezequiel Garcia 89b14485ca media: imx: Fix csc/scaler unregister
The csc/scaler device private struct is released by
ipu_csc_scaler_video_device_release(), which can be called
by video_unregister_device() if there are no users
of the underlying struct video device.

Therefore, the mutex can't be held when calling
video_unregister_device() as its memory may be freed
by it, leading to a kernel oops.

Fortunately, the fix is quite simple as no locking
is needed when calling video_unregister_device(): v4l2-core
already has its own internal locking, and the structures
are also properly refcounted.

Fixes: a8ef0488cc ("media: imx: add csc/scaler mem2mem device")
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-01-12 18:07:02 +01:00
..
atomisp pci-v5.10-changes 2020-10-22 12:41:00 -07:00
hantro media: uapi: move H264 stateless controls out of staging 2020-12-03 12:27:33 +01:00
imx media: imx: Fix csc/scaler unregister 2021-01-12 18:07:02 +01:00
ipu3 media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
meson/vdec media: meson: vdec: add G12/SM1 to module description 2020-12-03 07:46:11 +01:00
omap4iss media: omap: Replace HTTP links with HTTPS ones 2020-09-01 14:13:27 +02:00
rkvdec media: uapi: move H264 stateless controls out of staging 2020-12-03 12:27:33 +01:00
sunxi ARM: SoC drivers for v5.11 2020-12-16 16:38:41 -08:00
tegra-vde Staging / IIO driver updates for 5.10-rc1 2020-10-15 09:46:23 -07:00
tegra-video media: tegra-video: Add custom V4L2 control V4L2_CID_TEGRA_SYNCPT_TIMEOUT_RETRY 2021-01-04 13:10:22 +01:00
zoran media: zoran: fix spelling mistake and make error message more meaningful 2020-11-16 10:31:07 +01:00
Kconfig media: allegro: move driver out of staging 2021-01-04 13:19:40 +01:00
Makefile media: allegro: move driver out of staging 2021-01-04 13:19:40 +01:00