drm/radeon: Ensure radeon bo is unreserved in radeon_gem_va_ioctl
Subsystems (2)
PATCH 1/1 drm/radeon: Ensure radeon bo is unreserved in radeon_gem_va_ioctl
Found with lockdep while testing gpu reset.
--- drivers/gpu/drm/radeon/radeon_gem.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/radeon/radeon_gem.c +1 -0
@@ -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 ; }
Signature · 6 lines
2.7.0 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Am 25.01.2016 um 16:34 schrieb Matthew Dawson:
Quoted 3 lines
Found with lockdep while testing gpu reset.
Signed-off-by Matthew Dawson <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/radeon/radeon_gem.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/radeon/radeon_gem.c +0
-0
drivers/gpu/drm/radeon/radeon_gem.c int radeon_gem_va_ioctl(struct drm_device *dev, void *data, · line 669
Quoted 7 lines
drivers/gpu/drm/radeon/radeon_gem.c +1
-0@@ -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 ; }
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedQuoted 8 lines · Christian König
Am 25.01.2016 um 16:34 schrieb Matthew Dawson:
Quoted 4 lines
Found with lockdep while testing gpu reset.
Signed-off-by Matthew Dawson <[email protected]>Reviewed-by Christian König <[email protected]>
Applied. Thanks!
Alex
Quoted 17 lines
Quoted 17 lines
--- drivers/gpu/drm/radeon/radeon_gem.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/radeon/radeon_gem.c +1
-0@@ -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);
Quoted 8 lines
Quoted 2 lines
drivers/gpu/drm/radeon/radeon_gem.c +0
-0return -ENOENT ;}_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel