alistair23-linux/drivers/gpu/drm/i915/selftests
Chris Wilson f648661bc7 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: 09a4c02e58 ("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
2018-06-20 13:12:22 +01:00
..
huge_gem_object.c
huge_gem_object.h
huge_pages.c drm/i915: Make closing request flush mandatory 2018-06-14 08:16:12 +01:00
i915_gem_coherency.c drm/i915: Make closing request flush mandatory 2018-06-14 08:16:12 +01:00
i915_gem_context.c drm/i915/selftests: Avoid ERR_PTR dereference 2018-06-20 13:12:22 +01:00
i915_gem_dmabuf.c
i915_gem_evict.c drm/i915/gtt: Rename i915_hw_ppgtt base member 2018-06-05 21:11:20 +01:00
i915_gem_gtt.c drm/i915/gtt: Subclass gen6_hw_ppgtt 2018-06-12 12:57:17 +01:00
i915_gem_object.c drm/i915/gtt: Rename i915_hw_ppgtt base member 2018-06-05 21:11:20 +01:00
i915_live_selftests.h
i915_mock_selftests.h drm/i915: Look for an active kernel context before switching 2018-05-24 15:51:45 +01:00
i915_random.c
i915_random.h
i915_request.c drm/i915/selftests: Initialise request to silence a compiler 2018-06-14 19:20:33 +01:00
i915_selftest.c
i915_sw_fence.c
i915_syncmap.c
i915_timeline.c drm/i915: Split i915_gem_timeline into individual timelines 2018-05-02 23:57:18 +01:00
i915_vma.c drm/i915/gtt: Rename i915_hw_ppgtt base member 2018-06-05 21:11:20 +01:00
igt_flush_test.c drm/i915/selftests: Only switch to kernel context when locked 2018-05-09 09:28:45 +01:00
igt_flush_test.h drm/i915/selftests: Refactor common flush_test() 2018-05-08 12:44:31 +01:00
intel_breadcrumbs.c drm/i915/selftests: Fix error checking for wait_var_timeout 2018-05-02 11:20:05 +01:00
intel_engine_cs.c
intel_guc.c
intel_hangcheck.c drm/i915: Make closing request flush mandatory 2018-06-14 08:16:12 +01:00
intel_lrc.c drm/i915: Make closing request flush mandatory 2018-06-14 08:16:12 +01:00
intel_uncore.c
intel_workarounds.c drm/i915: Make closing request flush mandatory 2018-06-14 08:16:12 +01:00
lib_sw_fence.c
lib_sw_fence.h
mock_context.c drm/i915: Store a pointer to intel_context in i915_request 2018-05-18 09:35:22 +01:00
mock_context.h
mock_dmabuf.c
mock_dmabuf.h
mock_drm.c
mock_drm.h
mock_engine.c drm/i915/selftests: Pin the mock kernel context 2018-05-23 17:48:46 +01:00
mock_engine.h
mock_gem_device.c drm/i915/selftests: Pin the mock kernel context 2018-05-23 17:48:46 +01:00
mock_gem_device.h
mock_gem_object.h
mock_gtt.c drm/i915: Decouple vma vfuncs from vm 2018-06-07 21:53:11 +01:00
mock_gtt.h
mock_request.c
mock_request.h
mock_timeline.c drm/i915: Split i915_gem_timeline into individual timelines 2018-05-02 23:57:18 +01:00
mock_timeline.h drm/i915: Split i915_gem_timeline into individual timelines 2018-05-02 23:57:18 +01:00
mock_uncore.c
mock_uncore.h
scatterlist.c