diff options
| author | Yang Wang <kevinyang.wang@amd.com> | 2026-02-04 01:38:23 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-02-12 15:18:54 -0500 |
| commit | f5a8292aab5be0f52b656ac393df4c26edac8e90 (patch) | |
| tree | adc6b043fe4c03478f98ecd54dfa9b4f93bfd908 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 5a19302cab5cec7ae7f1a60c619951e6c17d8742 (diff) | |
drm/amd/pm: use sysfs_streq for string matching in amdgpu_pm
The driver uses strncmp() to compare sysfs attribute strings,
which does not handle trailing newlines and lacks NULL safety.
sysfs_streq() is the recommended function for sysfs string equality
checks in the kernel, providing safer and more correct behavior.
replace strncmp() with sysfs_streq() in drivers/gpu/drm/amd/pm/amdgpu_pm.c
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
