[Intel-gfx] [PATCH] drm/i915/selftests: Avoid ERR_PTR dereference
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Wed Jun 20 12:04:45 UTC 2018
Quoting Chris Wilson (2018-06-20 14:24:41)
> Along the early error path for igt_switch_to_kernel_context we may try
> to dereference an invalid error pointer. Instead, return early rather
> than dump the GEM trace since we haven't yet emitted anything of
> interest.
>
> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
> Fixes: 09a4c02e58c1 ("drm/i915: Look for an active kernel context before switching")
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala at intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regards, Joonas
More information about the Intel-gfx
mailing list