diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2021-05-20 15:59:45 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-14 16:55:52 +0200 |
commit | d0214b841c1da353918d9e4e7f7b8c05a5d7901b (patch) | |
tree | 4736a82f64dcec8db484be688636adecc3885c7a /kernel | |
parent | addcb6bb584aef558ecab13c45bec0cd1bc3efb3 (diff) |
arm64: perf: Convert snprintf to sysfs_emit
[ Upstream commit a5740e955540181f4ab8f076cc9795c6bbe4d730 ]
Use sysfs_emit instead of snprintf to avoid buf overrun,because in
sysfs_emit it strictly checks whether buf is null or buf whether
pagesize aligned, otherwise it returns an error.
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Link: https://lore.kernel.org/r/1621497585-30887-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions