An error occurred fetching the project authors.
  1. 16 Feb, 2017 2 commits
    • DongCV's avatar
      spi: rspi: Replaces "n" by "len" in qspi_transfer_*() · ad16d4a8
      DongCV authored
      This patch replaced "n" by "len" bytes of data in qspi_transfer_in() and
      qspi_transfer_out() function. This will make improving readability.
      Signed-off-by: default avatarDongCV <cv-dong@jinso.co.jp>
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      ad16d4a8
    • DongCV's avatar
      spi: rspi: Fixes bogus received byte in qspi_transfer_in() · 7264abc7
      DongCV authored
      In qspi_transfer_in(), when receiving the last n (or len) bytes of data,
      one bogus byte was written in the receive buffer.
      This code leads to a buffer overflow.
      
      "jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
      at 0x03b40000: 0x1900 instead
      jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
      at 0x03b40004: 0x000c instead"
      
      The error message above happens when trying to mount, unmount,
      and remount a jffs2-formatted device.
      This patch removed the bogus write to fixes: 3be09bec
      "spi: rspi: supports 32bytes buffer for DUAL and QUAD"
      
      And here is Geert's comment:
      
      "spi: rspi: Fix bogus received byte in qspi_transfer_in()
      When there are less than QSPI_BUFFER_SIZE remaining bytes to be received,
      qspi_transfer_in() writes one bogus byte in the receive buffer, possibly
      leading to a buffer overflow.
      This can be reproduced by mounting, unmounting, and remounting a
      jffs2-formatted device, causing lots of warnings like:
      
      "jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
      at 0x03b40000: 0x1900 instead"
      
      Remove the bogus write to fix this. "
      Signed-off-by: default avatarDongCV <cv-dong@jinso.co.jp>
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      7264abc7
  2. 04 Jan, 2017 1 commit
  3. 09 Nov, 2016 1 commit
    • Arnd Bergmann's avatar
      spi: rspi: avoid uninitialized variable access · db300838
      Arnd Bergmann authored
      The newly introduced rspi_pio_transfer_in_or_our() function must
      take either a valid 'rx' or 'tx' pointer, and has undefined behavior
      if both are NULL, as found by 'gcc -Wmaybe-unintialized':
      
      drivers/spi/spi-rspi.c: In function 'rspi_pio_transfer_in_or_our':
      drivers/spi/spi-rspi.c:558:5: error: 'len' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      The analysis of the function is correct in principle, but the code
      is currently safe because both callers always pass exactly one
      of the two pointers.
      
      Looking closer at this function shows that having a combined
      method for rx and tx here actually increases the complexity
      and the size of the file. This simplifies it again by keeping
      the two separate, which then ends up avoiding that warning.
      
      Fixes: 3be09bec ("spi: rspi: supports 32bytes buffer for DUAL and QUAD")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      db300838
  4. 04 Nov, 2016 1 commit
  5. 08 Aug, 2016 1 commit
  6. 03 Jul, 2015 2 commits
  7. 02 Jun, 2015 2 commits
  8. 07 May, 2015 1 commit
  9. 01 May, 2015 1 commit
  10. 06 Apr, 2015 1 commit
  11. 30 Mar, 2015 1 commit
  12. 23 Feb, 2015 1 commit
  13. 22 Dec, 2014 1 commit
  14. 20 Oct, 2014 1 commit
  15. 28 Aug, 2014 1 commit
  16. 16 Aug, 2014 5 commits
  17. 16 Jul, 2014 1 commit
  18. 07 Jul, 2014 2 commits
  19. 02 Jun, 2014 14 commits