summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-06-07 05:17:52 +0300
committerPaul Walmsley <pjw@kernel.org>2026-06-07 05:17:52 +0300
commit7d0dec57e52c7b5e14ba4ab6f86e9c17b850f1ec (patch)
treee5405b0d0ce96a55978da8bc165dec840bb72f3f /include/linux/debugobjects.h
parentb954dba17b2ee53dadd34a7aacf55a33a775448f (diff)
downloadlinux-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/debugobjects.h')
0 files changed, 0 insertions, 0 deletions