]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:46 +0000 (10:14 +0100)
commitb7ef6b263cf9bd2ec08694f31e9d876bd82e698b
treea134cc87dd89de85d6565ff194059c2126411b8b
parent6d0e77882c4cb12e3a62aae9f40d5379f047fa46
media: amphion: Cancel message work before releasing the VPU core

commit ae246b0032146e352c4c06a7bf03cd3d5bcb2ecd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/amphion/vpu_v4l2.c