diff options
| author | Yongqiang Sun <Yongqiang.Sun@amd.com> | 2026-06-01 15:48:44 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-06-04 15:27:37 -0400 |
| commit | 8bfd3aeeb7d4c140434bb9e604fca39ebb3e2937 (patch) | |
| tree | 81a93f4485d00a1333246b23bc24e68e91038f21 /include/linux | |
| parent | 342981fff32802a819d6fc7cf3c9fedf9f3d9d60 (diff) | |
drm/amdkfd: fix sysfs topology prop length on buffer truncation
sysfs_show_gen_prop() accumulated snprintf()'s return value into the
offset. snprintf() reports bytes that would have been written, not
bytes actually written, so a truncated sysfs show could over-report
its length. Use sysfs_emit_at(), which returns only the bytes written.
Signed-off-by: Yongqiang Sun <Yongqiang.Sun@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
