diff --git a/drivers/gpu/drm/i915/selftests/i915_buddy.c b/drivers/gpu/drm/i915/selftests/i915_buddy.c index b839dd99dd1f33d87ad9c9c5b8dd2578d840e11f..23f784eae1e7de16b7689e655022e85d121d7cab 100644 --- a/drivers/gpu/drm/i915/selftests/i915_buddy.c +++ b/drivers/gpu/drm/i915/selftests/i915_buddy.c @@ -665,6 +665,7 @@ static int igt_buddy_alloc_range(void *arg) if (!block) { pr_err("alloc_range has no blocks\n"); err = -EINVAL; + break; } if (i915_buddy_block_offset(block) != offset) {