linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH drivers/mtd v2 0/2] convert sysfs sprintf/snprintf/scnprintf to sysfs_emit
@ 2021-04-12  9:35 Tian Tao
  2021-04-12  9:35 ` [PATCH drivers/mtd v2 1/2] mtd: core: Convert sysfs sprintf/snprintf family " Tian Tao
  2021-04-12  9:35 ` [PATCH drivers/mtd v2 2/2] mtd: mtdpart: " Tian Tao
  0 siblings, 2 replies; 5+ messages in thread
From: Tian Tao @ 2021-04-12  9:35 UTC (permalink / raw)
  To: miquel.raynal, richard, vigneshr; +Cc: linux-mtd, Tian Tao

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


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-10  9:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12  9:35 [PATCH drivers/mtd v2 0/2] convert sysfs sprintf/snprintf/scnprintf to sysfs_emit Tian Tao
2021-04-12  9:35 ` [PATCH drivers/mtd v2 1/2] mtd: core: Convert sysfs sprintf/snprintf family " Tian Tao
2021-05-10  9:09   ` Miquel Raynal
2021-04-12  9:35 ` [PATCH drivers/mtd v2 2/2] mtd: mtdpart: " Tian Tao
2021-05-10  9:09   ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).