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

Commit a5d20c40 authored by Alex Xie's avatar Alex Xie Committed by Alex Deucher
Browse files

drm/amdgpu: Free resources of bo_list when idr_alloc fails

parent 74c31c6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ static int amdgpu_bo_list_create(struct amdgpu_device *adev,
	r = idr_alloc(&fpriv->bo_list_handles, list, 1, 0, GFP_KERNEL);
	mutex_unlock(&fpriv->bo_list_lock);
	if (r < 0) {
		kfree(list);
		amdgpu_bo_list_free(list);
		return r;
	}
	*id = r;