Skip to content
Commit 471aa951 authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by Jani Nikula
Browse files

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: 2fec5391 ("i915/perf: Replace DRM_DEBUG with driver specific drm_dbg call")
Suggested-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: <stable@vger.kernel.org> # v6.0+
Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231027172822.2753059-1-harshit.m.mogalapalli@oracle.com


[tursulin: added stable tag]
(cherry picked from commit 36f27350)
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent ce4941c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment