]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: amphion: Cancel message work before releasing the VPU core
authorMing Qian <ming.qian@oss.nxp.com>
Tue, 16 Sep 2025 06:10:07 +0000 (14:10 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 20 Oct 2025 07:23:17 +0000 (09:23 +0200)
commitae246b0032146e352c4c06a7bf03cd3d5bcb2ecd
tree5722f07bdee848cd010774ae16fd963778ec5ccb
parent634c2cd17bd021487c57b95973bddb14be8002ff
media: amphion: Cancel message work before releasing the VPU core

To avoid accessing the VPU register after release of the VPU core,
cancel the message work and destroy the workqueue that handles the
VPU message before release of the VPU core.

Fixes: 3cd084519c6f ("media: amphion: add vpu v4l2 m2m support")
Cc: stable@vger.kernel.org
Signed-off-by: Ming Qian <ming.qian@oss.nxp.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/amphion/vpu_v4l2.c