Skip to content
Commit 1d6664fa authored by Like Xu's avatar Like Xu Committed by Sean Christopherson
Browse files

KVM: x86: Use sysfs_emit() instead of sprintf()



Use sysfs_emit() instead of the sprintf() for sysfs entries. sysfs_emit()
knows the maximum of the temporary buffer used for outputting sysfs
content and avoids overrunning the buffer length.

Signed-off-by: default avatarLike Xu <likexu@tencent.com>
Link: https://lore.kernel.org/r/20230625073438.57427-1-likexu@tencent.com
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent fdf0eaf1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment