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

Commit 602cbe8e authored by Dan Carpenter's avatar Dan Carpenter Committed by Chris Wilson
Browse files

drm/i915/selftests: Fix an IS_ERR() vs NULL check



The live_context() function returns error pointers.  It never returns
NULL.

Fixes: 9c1477e8 ("drm/i915/selftests: Exercise adding requests to a full GGTT")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190326050843.GA20038@kadam
parent 97ee6e92
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -455,7 +455,7 @@ static int igt_evict_contexts(void *arg)
			struct i915_gem_context *ctx;

			ctx = live_context(i915, file);
			if (!ctx)
			if (IS_ERR(ctx))
				break;

			/* We will need some GGTT space for the rq's context */