Skip to content

spi: replace strcpy(), sprintf() and simple_strtoul() with strscpy(), snprintf() and kstrtoul()

Aayush Kumar linux-spi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5spi: butterfly: Use strscpy() instead of strcpy()drivers/spi/spi-butterfly.c+2 -10 replies
2/5spi: lm70llp: Use strscpy() instead of strcpy()drivers/spi/spi-lm70llp.c+1 -12 replies
3/5spi: tle62x0: Use kstrtoul() instead of simple_strtoul()drivers/spi/spi-tle62x0.c+3 -30 replies
4/5spi: omap2-mcspi: Use snprintf() instead of sprintf()drivers/spi/spi-omap2-mcspi.c+4 -20 replies
5/5spi: s3c64xx: Use snprintf() instead of sprintf()drivers/spi/spi-s3c64xx.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] spi: replace strcpy(), sprintf() and simple_strtoul() with strscpy(), snprintf() and kstrtoul()

Replace strcpy(), sprintf() and simple_strtoul() with their safer modern equivalents (strscpy, snprintf, kstrtoul).

Aayush Kumar (5):
spi: butterfly: Use strscpy() instead of strcpy()
spi: lm70llp: Use strscpy() instead of strcpy()
spi: tle62x0: Use kstrtoul() instead of simple_strtoul()
spi: omap2-mcspi: Use snprintf() instead of sprintf()
spi: s3c64xx: Use snprintf() instead of sprintf()

 drivers/spi/spi-butterfly.c   | 3 ++-
 drivers/spi/spi-lm70llp.c     | 2 +-
 drivers/spi/spi-omap2-mcspi.c | 6 ++++--
 drivers/spi/spi-s3c64xx.c     | 3 ++-
 drivers/spi/spi-tle62x0.c     | 6 +++---
 5 files changed, 12 insertions(+), 8 deletions(-)
Signature · 1 line
2.56.0