aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-04-12 17:35:43 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-05-10 10:44:40 +0200
commit5b2fbe0ca0e8a88f8da3c96cd6628561852be655 (patch)
treedc63b2f97d94e47318fb56ce59a898b1cba07ffa /tools/perf/scripts/python/export-to-postgresql.py
parentmtd: mtd_oobtest: fix error return code in mtd_oobtest_init() (diff)
downloadlinux-dev-5b2fbe0ca0e8a88f8da3c96cd6628561852be655.tar.xz
linux-dev-5b2fbe0ca0e8a88f8da3c96cd6628561852be655.zip
mtd: core: 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-2-git-send-email-tiantao6@hisilicon.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions