summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-06-06 20:17:52 -0600
committerPaul Walmsley <pjw@kernel.org>2026-06-06 20:17:52 -0600
commit7d0dec57e52c7b5e14ba4ab6f86e9c17b850f1ec (patch)
treee5405b0d0ce96a55978da8bc165dec840bb72f3f /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parentb954dba17b2ee53dadd34a7aacf55a33a775448f (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