Files
linux/drivers/gpu/drm
Harshit Mogalapalli 471aa951bf 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: 2fec539112 ("i915/perf: Replace DRM_DEBUG with driver specific drm_dbg call")
Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: <stable@vger.kernel.org> # v6.0+
Signed-off-by: Tvrtko 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 36f27350ff)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2023-10-30 13:48:46 +02:00
..
2023-08-29 19:56:11 +02:00
2023-03-14 17:07:48 +01:00
2023-10-11 09:50:59 +02:00
2023-09-20 15:27:44 +02:00
2023-09-20 15:27:44 +02:00
2023-02-20 14:56:52 +01:00
2023-10-23 18:20:06 +10:00
2023-09-26 01:58:28 +02:00