mbox series

[drivers/iio,0/3] convert sysfs sprintf/snprintf/scnprintf to sysfs_emit

Message ID 1618216751-1678-1-git-send-email-tiantao6@hisilicon.com (mailing list archive)
Headers show
Series convert sysfs sprintf/snprintf/scnprintf to sysfs_emit | expand

Message

Tian Tao April 12, 2021, 8:39 a.m. UTC
Use the generic sysfs_emit() function to take place of
sprintf/snprintf/scnprintf, to avoid buffer overrun.

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(-)

Comments

Jonathan Cameron April 18, 2021, 10:06 a.m. UTC | #1
On Mon, 12 Apr 2021 16:39:08 +0800
Tian Tao <tiantao6@hisilicon.com> wrote:

> Use the generic sysfs_emit() function to take place of
> sprintf/snprintf/scnprintf, to avoid buffer overrun.
> 
> 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(-)

Series applied to the togreg branch of iio.git and pushed out as testing
to let the autobuilders see if they can find anything we missed.

This won't got upstream until after the merge window so plenty of time
for others to take a look if they want to.

Thanks,

Jonathan

>