]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: free the metadata buffer for sg type BOs as well
authorShiwu Zhang <shiwu.zhang@amd.com>
Wed, 26 May 2021 03:42:14 +0000 (11:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Jun 2021 02:36:23 +0000 (22:36 -0400)
commit3c609c8b1f2f481b04cca7ddc890a075cec4a6c3
tree4601b762fe15790ad689a152085f9341ee472b0c
parenteba98523724be7ad3539f2c975de1527e0c99dd6
drm/amdgpu: free the metadata buffer for sg type BOs as well

Since both sg and device type BOs have metadata buffer, free
the buffer in both cases when to destroy BOs

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Acked-by: Nirmoy Das <Nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c