drm/radeon: fix prime teardown order
authorChristian König <christian.koenig@amd.com>
Fri, 9 Mar 2018 13:44:32 +0000 (14:44 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 20:08:40 +0000 (15:08 -0500)
commit0660b58c9038f5ef94b8fe33716449945ea786e5
treef21d991d0e5eee09d9ec168964c79aeb9fca2b98
parent7f8fb919655ef3011b01bb114fef42107957860a
drm/radeon: fix prime teardown order

We unmapped imported DMA-bufs when the GEM handle was dropped, not when the
hardware was done with the buffere.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_object.c