Skip to content

Fix silent truncations in the SPI NOR driver

Sergei Shtylyov linux-mtd 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mtd: spi-nor: fix silent truncation in spi_nor_read()drivers/mtd/spi-nor/spi-nor.c+1 -10 replies
2/2mtd: spi-nor: fix silent truncation in spi_nor_read_raw()drivers/mtd/spi-nor/spi-nor.c+1 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix silent truncations in the SPI NOR driver

Hello!

Here's a set of 2 patches against the 'mtd/fixes' branch of the MTD 'linux.git' repo. The SPI NOR driver assigns th result of a function returning 'ssize_t' to the *int* variable in a couple of places, while 'ssize_t' is a 64-bit type and *int* is a 32-bit type on the 64-bit machines. The silent truncation that happens there isn't really valid, so we have to fix up the variable's type...

[1/2] mtd: spi-nor: fix silent truncation in spi_nor_read() [2/2] mtd: spi-nor: fix silent truncation in spi_nor_read_raw()

MBR, Sergei

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/