diff options
author | 2021-04-12 17:35:44 +0800 | |
---|---|---|
committer | 2021-05-10 10:44:43 +0200 | |
commit | ce675043fa12dfc50276e00f31da61e14846b178 (patch) | |
tree | 98fee350632c63729118ab5a28d62be8f3496e09 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: core: Convert sysfs sprintf/snprintf family to sysfs_emit (diff) | |
download | linux-dev-ce675043fa12dfc50276e00f31da61e14846b178.tar.xz linux-dev-ce675043fa12dfc50276e00f31da61e14846b178.zip |
mtd: mtdpart: Convert sysfs sprintf/snprintf family to sysfs_emit
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>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1618220144-33839-3-git-send-email-tiantao6@hisilicon.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions