[PATCH drivers/mtd v2 2/2] mtd: mtdpart: Convert sysfs sprintf/snprintf family to sysfs_emit

Miquel Raynal miquel.raynal at bootlin.com
Mon May 10 02:09:44 PDT 2021


On Mon, 2021-04-12 at 09:35:44 UTC, Tian Tao wrote:
> 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 at hisilicon.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list