diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-06-06 20:17:52 -0600 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-06-06 20:17:52 -0600 |
| commit | 7d0dec57e52c7b5e14ba4ab6f86e9c17b850f1ec (patch) | |
| tree | e5405b0d0ce96a55978da8bc165dec840bb72f3f /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | b954dba17b2ee53dadd34a7aacf55a33a775448f (diff) | |
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 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
