OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jun 2015 00:03:33 +0000 (17:03 -0700)
commitbe37f505acba7d6511cd2ab967022abfca068117
tree365490e5e3ef0af33acfa7a846ba311cf8795f26
parent2491a840603c8b70f287e78e221e1ddb04b50f05
drm/radeon: Make sure radeon_vm_bo_set_addr always unreserves the BO

commit ee18e599251ed06bf0c8ade7c434a0de311342ca upstream.

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
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_vm.c