Commit 9b7039a0 authored by Joe Perches's avatar Joe Perches Committed by Yongqiang Liu
Browse files

drivers core: Remove strcat uses around sysfs_emit and neaten

mainline inclusion
from mainline-v5.10-rc1
commit 973c3911
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I5C32F


CVE: CVE-2022-20166

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

strcat is no longer necessary for sysfs_emit and sysfs_emit_at uses.

Convert the strcat uses to sysfs_emit calls and neaten other block
uses of direct returns to use an intermediate const char *.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Link: https://lore.kernel.org/r/5d606519698ce4c8f1203a2b35797d8254c6050a.1600285923.git.joe@perches.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Conflicts:
    drivers/base/node.c

Signed-off-by: default avatarGuo Mengqi <guomengqi3@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Reviewed-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 90ccfcdb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment