diff options
author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2023-10-27 10:28:22 -0700 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2023-10-30 13:48:46 +0200 |
commit | 471aa951bf1206d3c10d0daa67005b8e4db4ff83 (patch) | |
tree | 4312666ea7760b49e6212c8169aba72f66b94d7b /net/unix/sysctl_net_unix.c | |
parent | ce4941c2d6459664761c9854701015d8e99414fb (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 <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 36f27350ff745bd228ab04d7845dfbffc177a889)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions