]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: proton-pack: use sysfs_emit in sysfs show functions
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 13 May 2026 11:57:55 +0000 (13:57 +0200)
committerWill Deacon <will@kernel.org>
Tue, 19 May 2026 11:16:12 +0000 (12:16 +0100)
commit243c1d75a01e5fc6cea213e52ea871155cf4946e
tree07ed5951a12df5577df26f025849d79e7ce1c7f9
parentede94377d855cff9c729539ef1e0ef525f7318cd
arm64: proton-pack: use sysfs_emit in sysfs show functions

Replace sprintf() with sysfs_emit() in sysfs show functions, 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>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/proton-pack.c