drm/radeon: Make sure radeon_vm_bo_set_addr always unreserves the BO
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 11 Jun 2015 09:38:38 +0000 (18:38 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 11 Jun 2015 14:27:54 +0000 (10:27 -0400)
commitee18e599251ed06bf0c8ade7c434a0de311342ca
tree568030960f99e0a81a3ebf73b2370fd650097252
parentebb9bf18636926d5da97136c22e882c5d91fda73
drm/radeon: Make sure radeon_vm_bo_set_addr always unreserves the BO

Some error paths didn't unreserve the BO. This resulted in a deadlock
down the road on the next attempt to reserve the (still reserved) BO.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90873
Cc: stable@vger.kernel.org
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_vm.c