]> git.ipfire.org Git - thirdparty/linux.git/commit
crash_dump: use sysfs_emit in sysfs show functions
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 1 Mar 2026 12:51:07 +0000 (13:51 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:38 +0000 (21:19 -0700)
commitdefec2ca7cd743c9b8a29be5012ad7381a5ecbb3
tree25faa3ee83dfa85101b344a995b9486ee43f85c6
parent90c73d0bfa36ea80f3a55f5426daa46fa2795957
crash_dump: use sysfs_emit in sysfs show functions

Replace sprintf() with sysfs_emit() in sysfs show functions.  sysfs_emit()
is preferred for formatting sysfs output because it provides safer bounds
checking.  No functional changes.

Link: https://lkml.kernel.org/r/20260301125106.911980-2-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/crash_dump_dm_crypt.c