aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
diff options
context:
space:
mode:
authorPhilip Yang <[email protected]>2021-04-26 18:25:37 +0000
committerAlex Deucher <[email protected]>2021-04-29 03:36:04 +0000
commitc0f76fc8ad5f3511bdee37efc130555b39d3f711 (patch)
tree09e510743c990c6f0a01649482439a38ba0ed496 /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
parentdrm/amdkfd: Fix spelling mistake "unregisterd" -> "unregistered" (diff)
downloadkernel-c0f76fc8ad5f3511bdee37efc130555b39d3f711.tar.gz
kernel-c0f76fc8ad5f3511bdee37efc130555b39d3f711.zip
drm/amdkfd: fix double free device pgmap resource
Use devm_memunmap_pages instead of memunmap_pages to release pgmap and remove pgmap from device action, to avoid double free pgmap when unloading driver module. Release device memory region if failed to create device memory pages structure. Signed-off-by: Philip Yang <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions