]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/amdgpu: fix userptr put_page handling
authorChristian König <christian.koenig@amd.com>
Sat, 2 Sep 2017 11:21:31 +0000 (13:21 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:23:10 +0000 (14:23 -0400)
commita216ab09955d6b77f3af4f0aba9255c5ddf382f5
tree729b38ef0a74fc185972a65116b1b5a8ad900ab5
parent7a9667ae197460e6c9c3bb432fe68c708fce6259
drm/amdgpu: fix userptr put_page handling

Move calling put_page into the unpopulate callback. Otherwise we mess up the pages
reference count when it is unbound multiple times.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c