summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorYang Wang <kevinyang.wang@amd.com>2026-02-04 01:38:23 -0500
committerAlex Deucher <alexander.deucher@amd.com>2026-02-12 15:18:54 -0500
commitf5a8292aab5be0f52b656ac393df4c26edac8e90 (patch)
treeadc6b043fe4c03478f98ecd54dfa9b4f93bfd908 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent5a19302cab5cec7ae7f1a60c619951e6c17d8742 (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