diff options
author | Matthew Dawson <matthew@mjdsystems.ca> | 2016-01-25 10:34:12 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-01-25 10:57:17 -0500 |
commit | 186bac815227a4c26a0ad2f18c7450015d93ed0a (patch) | |
tree | 7f9389d82561768a95ac2bfea56c4b6278a34029 /drivers | |
parent | 41f2d9905646b1cd4be5852b273c06b6a6d23a80 (diff) |
drm/radeon: Ensure radeon bo is unreserved in radeon_gem_va_ioctl
Found with lockdep while testing gpu reset.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_gem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c index 3dcc5733ff69..e26c963f2e93 100644 --- a/drivers/gpu/drm/radeon/radeon_gem.c +++ b/drivers/gpu/drm/radeon/radeon_gem.c | |||
@@ -663,6 +663,7 @@ int radeon_gem_va_ioctl(struct drm_device *dev, void *data, | |||
663 | bo_va = radeon_vm_bo_find(&fpriv->vm, rbo); | 663 | bo_va = radeon_vm_bo_find(&fpriv->vm, rbo); |
664 | if (!bo_va) { | 664 | if (!bo_va) { |
665 | args->operation = RADEON_VA_RESULT_ERROR; | 665 | args->operation = RADEON_VA_RESULT_ERROR; |
666 | radeon_bo_unreserve(rbo); | ||
666 | drm_gem_object_unreference_unlocked(gobj); | 667 | drm_gem_object_unreference_unlocked(gobj); |
667 | return -ENOENT; | 668 | return -ENOENT; |
668 | } | 669 | } |