diff options
author | 2018-09-21 11:32:53 +0200 | |
---|---|---|
committer | 2018-10-08 21:28:27 +0200 | |
commit | 000412276370a9bcfec73b3752ceefd9a927f1db (patch) | |
tree | a4fbb906d0e77e89c8d33898b8ba8f23a62b96c4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: devices: m25p80: Make sure WRITE_EN is issued before each write (diff) | |
download | wireguard-linux-000412276370a9bcfec73b3752ceefd9a927f1db.tar.xz wireguard-linux-000412276370a9bcfec73b3752ceefd9a927f1db.zip |
mtd: spi-nor: fsl-quadspi: Don't let -EINVAL on the bus
fsl_qspi_get_seqid() may return -EINVAL, but fsl_qspi_init_ahb_read()
doesn't check for error codes with the result that -EINVAL could find
itself signalled over the bus.
In conjunction with the LS1046A SoC's A-009283 errata
("Illegal accesses to SPI flash memory can result in a system hang")
this illegal access to SPI flash memory results in a system hang
if userspace attempts reading later on.
Avoid this by always checking fsl_qspi_get_seqid()'s return value
and bail out otherwise.
Fixes: e46ecda764dc ("mtd: spi-nor: Add Freescale QuadSPI driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions