[PATCH drivers/mtd v2 0/2] convert sysfs sprintf/snprintf/scnprintf to sysfs_emit

Tian Tao tiantao6 at hisilicon.com
Mon Apr 12 10:35:42 BST 2021


Use the generic sysfs_emit() function to take place of snprintf,
to avoid buffer overrun.

v2: rewrite the commit message

Tian Tao (2):
  mtd: core: Convert sysfs sprintf/snprintf family to sysfs_emit
  mtd: mtdpart: Convert sysfs sprintf/snprintf family to sysfs_emit

 drivers/mtd/mtdcore.c | 35 +++++++++++++++++------------------
 drivers/mtd/mtdpart.c |  2 +-
 2 files changed, 18 insertions(+), 19 deletions(-)

-- 
2.7.4




More information about the linux-mtd mailing list