diff options
| author | Harshit Mogalapalli <[email protected]> | 2023-10-27 10:28:22 -0700 |
|---|---|---|
| committer | Tvrtko Ursulin <[email protected]> | 2023-10-30 11:00:03 +0000 |
| commit | 36f27350ff745bd228ab04d7845dfbffc177a889 (patch) | |
| tree | c6a48323164fbf14ff4b27c5349ec897c6e3fef4 /tools/perf/scripts/python/bin | |
| parent | 33f2af42a2019da4fecde30fe144a810b485762f (diff) | |
i915/perf: Fix NULL deref bugs with drm_dbg() calls
When i915 perf interface is not available dereferencing it will lead to
NULL dereferences.
As returning -ENOTSUPP is pretty clear return when perf interface is not
available.
Fixes: 2fec539112e8 ("i915/perf: Replace DRM_DEBUG with driver specific drm_dbg call")
Suggested-by: Tvrtko Ursulin <[email protected]>
Signed-off-by: Harshit Mogalapalli <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Cc: <[email protected]> # v6.0+
Signed-off-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
[tursulin: added stable tag]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions