diff options
| author | 2021-03-19 18:04:33 +0800 | |
|---|---|---|
| committer | 2021-03-25 12:55:44 +0000 | |
| commit | fb62d67586afc046f3783d819985c737f6b0b666 (patch) | |
| tree | 812c6b649bc448360dbdf0c19c40e87f27e7962f /include/linux/mfd/git:/ssh:/git@git.zx2c4.com | |
| parent | drivers/perf: convert sysfs scnprintf family to sysfs_emit_at() and sysfs_emit() (diff) | |
| download | linux-dev-fb62d67586afc046f3783d819985c737f6b0b666.tar.xz linux-dev-fb62d67586afc046f3783d819985c737f6b0b666.zip | |
drivers/perf: convert sysfs sprintf family to sysfs_emit
sprintf does not know the PAGE_SIZE maximum of the temporary buffer
used for sysfs content and it's possible to overrun the buffer length.
Use sysfs_emit() function to ensures that no overrun is done.
Signed-off-by: Qi Liu <liuqi115@huawei.com>
Link: https://lore.kernel.org/r/1616148273-16374-4-git-send-email-liuqi115@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
