Commit 03124140 authored by Kai Ye's avatar Kai Ye Committed by JiangShui
Browse files

uacce: use sysfs_emit instead of sprintf

mainline inclusion
from mainline-v5.17-rc1
commit 2d2802fb
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/T878TZ
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2d2802fb24de8cbacb4a2d6da2e002acc1c17143



----------------------------------------------------------------------

Use the sysfs_emit to replace sprintf. sprintf may cause
output defect in sysfs content, it is better to use new
added sysfs_emit function which knows the size of the
temporary buffer.

Signed-off-by: default avatarKai Ye <yekai13@huawei.com>
Link: https://lore.kernel.org/r/20211206104724.11559-1-yekai13@huawei.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJiangShui Yang <yangjiangshui@h-partners.com>
parent 0274ba70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment