diff options
author | 2023-10-11 14:25:47 +0200 | |
---|---|---|
committer | 2023-10-18 12:45:12 +0200 | |
commit | f1cdb599ce0ef909343d6c8e7d372defbaa382b9 (patch) | |
tree | 485e742e18625833b9ecfe0ec556057f97796053 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915: Enable GuC TLB invalidations for MTL (diff) | |
download | wireguard-linux-f1cdb599ce0ef909343d6c8e7d372defbaa382b9.tar.xz wireguard-linux-f1cdb599ce0ef909343d6c8e7d372defbaa382b9.zip |
drm/i915: Prevent potential null-ptr-deref in engine_init_common
If measure_breadcrumb_dw() returns an error and bce isn't created,
this commit ensures that intel_engine_destroy_pinned_context()
is not called with a NULL bce.
v2: Fix the subject s/UAF/null-ptr-deref(Jani)
Fixes: b35274993680 ("drm/i915: Create a kernel context for GGTT updates")
Cc: Oak Zeng <oak.zeng@intel.com>
Cc: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231011122547.7085-1-nirmoy.das@intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions