diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-10-19 12:02:22 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-11-06 01:52:40 +0300 |
commit | 90c31cb9a8115a1183daed9a714eea4be0687931 (patch) | |
tree | 531c43f12d4fbc0173ac088f6d4abbb912250d63 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 91d7b67000c6e9bd605624079fee5a084238ad92 (diff) | |
download | linux-90c31cb9a8115a1183daed9a714eea4be0687931.tar.xz |
mtd: spi-nor: Reset nor->addr_width when SFDP parsing failed
Commit 5390a8df769e ("mtd: spi-nor: add support to non-uniform SFDP SPI
NOR flash memories") removed the 'nor->addr_width = 0;' statement when
spi_nor_parse_sfdp() returns an error, thus leaving ->addr_width in an
undefined state which can cause trouble when spi_nor_scan() checks its
value.
Reported-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Fixes: 5390a8df769e ("mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories")
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions