Commit 471aa95
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: 2fec539 ("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 36f2735)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>1 parent ce4941c commit 471aa95
1 file changed
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4227 | 4227 | | |
4228 | 4228 | | |
4229 | 4229 | | |
4230 | | - | |
4231 | | - | |
4232 | | - | |
| 4230 | + | |
4233 | 4231 | | |
4234 | | - | |
4235 | 4232 | | |
4236 | 4233 | | |
4237 | 4234 | | |
| |||
4607 | 4604 | | |
4608 | 4605 | | |
4609 | 4606 | | |
4610 | | - | |
4611 | | - | |
4612 | | - | |
| 4607 | + | |
4613 | 4608 | | |
4614 | | - | |
4615 | 4609 | | |
4616 | 4610 | | |
4617 | 4611 | | |
| |||
4773 | 4767 | | |
4774 | 4768 | | |
4775 | 4769 | | |
4776 | | - | |
4777 | | - | |
4778 | | - | |
| 4770 | + | |
4779 | 4771 | | |
4780 | | - | |
4781 | 4772 | | |
4782 | 4773 | | |
4783 | 4774 | | |
| |||
0 commit comments