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/gpu/drm/radeon | |
parent | 41f2d9905646b1cd4be5852b273c06b6a6d23a80 (diff) | |
download | op-kernel-dev-186bac815227a4c26a0ad2f18c7450015d93ed0a.zip op-kernel-dev-186bac815227a4c26a0ad2f18c7450015d93ed0a.tar.gz |
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/gpu/drm/radeon')
-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 3dcc573..e26c963 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, bo_va = radeon_vm_bo_find(&fpriv->vm, rbo); if (!bo_va) { args->operation = RADEON_VA_RESULT_ERROR; + radeon_bo_unreserve(rbo); drm_gem_object_unreference_unlocked(gobj); return -ENOENT; } |