diff options
author | 2017-07-05 15:26:31 +0100 | |
---|---|---|
committer | 2017-07-06 11:50:47 +0100 | |
commit | e4d5dc218c4a1d1f555448825f5a8d7b1ac82959 (patch) | |
tree | 502a1066ec90bbf4842334e69c201b7caf629b81 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915: Setting pch_id for HSW/BDW in virtual environment (diff) | |
download | linux-dev-e4d5dc218c4a1d1f555448825f5a8d7b1ac82959.tar.xz linux-dev-e4d5dc218c4a1d1f555448825f5a8d7b1ac82959.zip |
drm/i915: Check new context against kernel_context after reporting an error
Avoid any pointer dereference in inspecting a potential PTR_ERR by
checking for the error pointer before checking for an invalid context.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170705142634.18554-1-chris@chris-wilson.co.uk
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions