linux/drivers/media/platform/chips-media/wave5
Ziyi Guo cb8bdd3ffc media: chips-media: wave5: add missing spinlock protection for handle_dynamic_resolution_change()
Add spin_lock_irqsave()/spin_unlock_irqrestore() around the
handle_dynamic_resolution_change() call in initialize_sequence() to fix
the missing lock protection.

initialize_sequence() calls handle_dynamic_resolution_change() without
holding inst->state_spinlock. However, handle_dynamic_resolution_change()
has lockdep_assert_held(&inst->state_spinlock) indicating that callers
must hold this lock.

Other callers of handle_dynamic_resolution_change() properly acquire the
spinlock:
- wave5_vpu_dec_finish_decode()
- wave5_vpu_dec_device_run()

Signed-off-by: Ziyi Guo <n7l8m4@u.northwestern.edu>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Fixes: 9707a6254a ("media: chips-media: wave5: Add the v4l2 layer")
Cc: stable@vger.kernel.org
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2026-03-23 11:18:33 +01:00
..
Kconfig media: chips-media: wave5: Requires GENERIC_ALLOCATOR 2023-12-13 09:43:45 +01:00
Makefile
wave5-helper.c media: chips-media: wave5: Fix Null reference while testing fluster 2026-01-05 15:56:31 +01:00
wave5-helper.h media: chips-media: wave5: Fix Null reference while testing fluster 2026-01-05 15:56:31 +01:00
wave5-hw.c media: chips-media: wave5: Improve performance of decoder 2026-01-05 15:56:31 +01:00
wave5-regdefine.h media: chips-media: wave5: support Wave515 decoder 2024-06-21 10:15:21 +02:00
wave5-vdi.c media: chips-media: wave5: fix a potential memory leak in wave5_vdi_init() 2026-03-23 11:18:33 +01:00
wave5-vdi.h
wave5-vpu-dec.c media: chips-media: wave5: add missing spinlock protection for handle_dynamic_resolution_change() 2026-03-23 11:18:33 +01:00
wave5-vpu-enc.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
wave5-vpu.c media: chips-media: wave5: Fix Potential Probe Resource Leak 2026-01-05 15:56:32 +01:00
wave5-vpu.h media: chips-media: wave5: Improve performance of decoder 2026-01-05 15:56:31 +01:00
wave5-vpuapi.c media: chips-media: wave5: Improve performance of decoder 2026-01-05 15:56:31 +01:00
wave5-vpuapi.h media: chips-media: wave5: Improve performance of decoder 2026-01-05 15:56:31 +01:00
wave5-vpuconfig.h media: chips-media: wave5: Improve performance of decoder 2026-01-05 15:56:31 +01:00
wave5-vpuerror.h
wave5.h media: chips-media: wave5: Support runtime suspend/resume 2024-10-08 14:49:38 +02:00