diff options
author | 2020-10-02 14:17:59 +0900 | |
---|---|---|
committer | 2021-02-05 14:56:17 +0200 | |
commit | abdf5a5ef9652bad4d58058bc22ddf23543ba3e1 (patch) | |
tree | 37512146c07ba0f06dff508e2e1a9800b066f4c8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: spi-nor: hisi-sfc: Put child node np on error path (diff) | |
download | wireguard-linux-abdf5a5ef9652bad4d58058bc22ddf23543ba3e1.tar.xz wireguard-linux-abdf5a5ef9652bad4d58058bc22ddf23543ba3e1.zip |
mtd: spi-nor: sfdp: Fix wrong erase type bitmask for overlaid region
At the time spi_nor_region_check_overlay() is called, the erase types are
sorted in ascending order of erase size. The 'erase_type' should be masked
with 'BIT(erase[i].idx)' instead of 'BIT(i)'.
Fixes: b038e8e3be72 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table")
Cc: stable@vger.kernel.org
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
[ta: Add Fixes tag and Cc to stable]
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/fd90c40d5b626a1319a78fc2bcee79a8871d4d57.1601612872.git.Takahiro.Kuwano@infineon.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions