aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorHarshit Mogalapalli <[email protected]>2023-10-27 17:28:22 +0000
committerJani Nikula <[email protected]>2023-10-30 11:48:46 +0000
commit471aa951bf1206d3c10d0daa67005b8e4db4ff83 (patch)
tree4312666ea7760b49e6212c8169aba72f66b94d7b /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdrm/i915/mtl: Support HBR3 rate with C10 phy and eDP in MTL (diff)
downloadkernel-471aa951bf1206d3c10d0daa67005b8e4db4ff83.tar.gz
kernel-471aa951bf1206d3c10d0daa67005b8e4db4ff83.zip
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] (cherry picked from commit 36f27350ff745bd228ab04d7845dfbffc177a889) Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions