diff options
author | 2018-06-20 12:24:41 +0100 | |
---|---|---|
committer | 2018-06-20 13:12:22 +0100 | |
commit | f648661bc7de497634c474a38608a715a0af4bbd (patch) | |
tree | e8f9942b143b73a8bb3d48eeed3cc080d6ada251 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | Merge tag 'gvt-next-2018-06-19' of https://github.com/intel/gvt-linux into drm-intel-next-queued (diff) | |
download | linux-dev-f648661bc7de497634c474a38608a715a0af4bbd.tar.xz linux-dev-f648661bc7de497634c474a38608a715a0af4bbd.zip |
drm/i915/selftests: Avoid ERR_PTR dereference
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@oracle.com>
Fixes: 09a4c02e58c1 ("drm/i915: Look for an active kernel context before switching")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180620112441.13085-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions