projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6444074
)
drm/amd/pm: fix NULL pointer issue of amdgpu_smu_stb_debug_fs_init
author
Likun Gao
<Likun.Gao@amd.com>
Wed, 12 Jan 2022 07:38:24 +0000
(15:38 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 4 May 2022 13:57:42 +0000
(09:57 -0400)
Fix NULL pointer issue on amdgpu_smu_stb_debug_fs_init if SMU block not
enabled.
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index
f154475
..
904d516
100644
(file)
--- a/
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@
-3031,7
+3031,7
@@
void amdgpu_smu_stb_debug_fs_init(struct amdgpu_device *adev)
struct smu_context *smu = adev->powerplay.pp_handle;
- if (!smu
->stb_context.stb_buf_size
)
+ if (!smu
|| (!smu->stb_context.stb_buf_size)
)
return;
debugfs_create_file_size("amdgpu_smu_stb_dump",