Skip to content

Commit 86730b5

Browse files
ISCAS-Vulabalexdeucher
authored andcommitted
drm/amdgpu/gfx12: correct cleanup of 'me' field with gfx_v12_0_me_fini()
In gfx_v12_0_cp_gfx_load_me_microcode_rs64(), gfx_v12_0_pfp_fini() is incorrectly used to free 'me' field of 'gfx', since gfx_v12_0_pfp_fini() can only release 'pfp' field of 'gfx'. The release function of 'me' field should be gfx_v12_0_me_fini(). Fixes: 52cb80c ("drm/amdgpu: Add gfx v12_0 ip block support (v6)") Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit ebdc526) Cc: stable@vger.kernel.org # 6.12.x
1 parent 424648c commit 86730b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2437,7 +2437,7 @@ static int gfx_v12_0_cp_gfx_load_me_microcode_rs64(struct amdgpu_device *adev)
24372437
(void **)&adev->gfx.me.me_fw_data_ptr);
24382438
if (r) {
24392439
dev_err(adev->dev, "(%d) failed to create me data bo\n", r);
2440-
gfx_v12_0_pfp_fini(adev);
2440+
gfx_v12_0_me_fini(adev);
24412441
return r;
24422442
}
24432443

0 commit comments

Comments
 (0)