aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2024-11-13 19:28:54 +0000
committerAlex Deucher <[email protected]>2024-11-21 20:56:23 +0000
commit93df74873703694f7c977bc13ff3baa667819b22 (patch)
treed6e699ee7d0f540b4f05e6573bec288ba1e37236 /drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
parentdrm/amdgpu: fix usage slab after free (diff)
downloadkernel-93df74873703694f7c977bc13ff3baa667819b22.tar.gz
kernel-93df74873703694f7c977bc13ff3baa667819b22.zip
drm/amdgpu/jpeg: cancel the jpeg worker
Looks like these got missed when jpeg was split from vcn. Cancel the jpeg workers rather than vcn workers. Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
index 10adbb7cbf53..e0df6800502c 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
@@ -164,7 +164,7 @@ static int jpeg_v3_0_hw_fini(struct amdgpu_ip_block *ip_block)
{
struct amdgpu_device *adev = ip_block->adev;
- cancel_delayed_work_sync(&adev->vcn.idle_work);
+ cancel_delayed_work_sync(&adev->jpeg.idle_work);
if (adev->jpeg.cur_state != AMD_PG_STATE_GATE &&
RREG32_SOC15(JPEG, 0, mmUVD_JRBC_STATUS))