aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2018-06-20 11:24:41 +0000
committerChris Wilson <[email protected]>2018-06-20 12:12:22 +0000
commitf648661bc7de497634c474a38608a715a0af4bbd (patch)
treee8f9942b143b73a8bb3d48eeed3cc080d6ada251 /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parentMerge tag 'gvt-next-2018-06-19' of https://github.com/intel/gvt-linux into dr... (diff)
downloadkernel-f648661bc7de497634c474a38608a715a0af4bbd.tar.gz
kernel-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 <[email protected]> Fixes: 09a4c02e58c1 ("drm/i915: Look for an active kernel context before switching") Signed-off-by: Chris Wilson <[email protected]> Cc: Mika Kuoppala <[email protected]> Cc: Joonas Lahtinen <[email protected]> Reviewed-by: Joonas Lahtinen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions