drm/radeon: fix prime teardown order
authorChristian König <[email protected]>
Fri, 9 Mar 2018 13:44:32 +0000 (14:44 +0100)
committerAlex Deucher <[email protected]>
Wed, 14 Mar 2018 20:39:42 +0000 (15:39 -0500)
commit0f4f715bc6bed3bf14c5cd7d5fe88d443e756b14
tree903a950f11f1ff3b3aae3d9ad92f4db0c27c5b44
parent342038d92403b3efa1138a8599666b9f026279d6
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 <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
CC: [email protected]
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_object.c