[PATCH] mtd: core: Convert sysfs sprintf/snprintf family to sysfs_emit

tiantao (H) tiantao6 at huawei.com
Mon Apr 12 09:29:32 BST 2021


在 2021/4/12 16:25, Richard Weinberger 写道:
> ----- Ursprüngliche Mail -----
>> understand.
>>
>> What do you think of the following commit message
>>
>> 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.
> This makes perfectly sense! :-)
> Additional you can also not that this issue was found by coccicheck.
thank you again.
>
> Thanks,
> //richard
> .
>




More information about the linux-mtd mailing list