[Intel-gfx] [PATCH] drm/i915/selftests: Catch error from mock_file()

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Wed Mar 15 13:20:58 UTC 2017


On ma, 2017-03-13 at 12:47 +0000, Chris Wilson wrote:
> The patch 791ff39ae32a: "drm/i915: Live testing for context
> execution" from Feb 13, 2017, leads to the following static checker
> warning:
> 
>         drivers/gpu/drm/i915/selftests/i915_gem_context.c:347 igt_ctx_exec()
>         error: 'file' dereferencing possible ERR_PTR()
> 
> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
> Fixes: 791ff39ae32a ("drm/i915: Live testing for context execution")
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Matthew Auld <matthew.auld at intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: Mika Kuoppala <mika.kuoppala at intel.com>
> Cc: <drm-intel-fixes at lists.freedesktop.org>

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation


More information about the Intel-gfx mailing list