On Mon, 12 Apr 2021 10:27:57 +0800 Tian Tao tiantao6@hisilicon.com wrote:
Use the generic sysfs_emit() function to take place of sprintf/snprintf/scnprintf, to avoid buffer overrun.
Patches are all fine, though in reality none of these have any chance of causing a buffer overrun (all fixed and easily checked max length).
However, I need to wait to see if Greg KH is reopenning staging (IIO goes via that tree for historical reasons) - if he isn't these will be in the next cycle.
Jonathan
Tian Tao (3): iio:chemical:sps30: Convert sysfs sprintf/snprintf family to sysfs_emit iio: light: Convert sysfs sprintf/snprintf family to sysfs_emit iio: trigger: stm32-timer: Convert sysfs sprintf/snprintf family to sysfs_emit
drivers/iio/chemical/sps30.c | 6 +++--- drivers/iio/light/veml6030.c | 2 +- drivers/iio/trigger/stm32-timer-trigger.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)