Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 186bac81 authored by Matthew Dawson's avatar Matthew Dawson Committed by Alex Deucher
Browse files

drm/radeon: Ensure radeon bo is unreserved in radeon_gem_va_ioctl



Found with lockdep while testing gpu reset.

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarMatthew Dawson <matthew@mjdsystems.ca>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 41f2d990
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}