diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-06-07 05:17:52 +0300 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-06-07 05:17:52 +0300 |
| commit | 7d0dec57e52c7b5e14ba4ab6f86e9c17b850f1ec (patch) | |
| tree | e5405b0d0ce96a55978da8bc165dec840bb72f3f /include/linux | |
| parent | b954dba17b2ee53dadd34a7aacf55a33a775448f (diff) | |
| download | linux-7d0dec57e52c7b5e14ba4ab6f86e9c17b850f1ec.tar.xz | |
riscv: use sysfs_emit in cpu_show_ghostwrite
Replace sprintf() with sysfs_emit() in cpu_show_ghostwrite(), which is
preferred for formatting sysfs output because it provides safer bounds
checking.
While the current code only emits fixed strings that fit easily within
PAGE_SIZE, use sysfs_emit() to follow secure coding best practices.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260510165420.109453-3-thorsten.blum@linux.dev
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
