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:Kai Ye <yekai13@huawei.com> Link: https://lore.kernel.org/r/20211206104724.11559-1-yekai13@huawei.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
JiangShui Yang <yangjiangshui@h-partners.com>
Loading
Please sign in to comment