diff options
author | [email protected] <[email protected]> | 2018-11-09 16:56:50 +0000 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2018-11-13 20:37:34 +0100 |
commit | c797bd81d10e648ec8c84c041191527113e63e85 (patch) | |
tree | 8857caf1ed97d09e8de1452f76f008fc5514e5a5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cd5e6d79384eb2dd47de6cb9569150053d4a6803 (diff) |
mtd: spi-nor: fix iteration over smpt array
Iterate over smpt array using its starting address and length
instead of the blind iterations that used data found in the array.
This prevents possible memory accesses outside of the smpt array
boundaries in case software, or manufacturers, misrepresent smpt
array fields.
Fixes: b038e8e3be72 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table")
Suggested-by: Boris Brezillon <[email protected]>
Signed-off-by: Tudor Ambarus <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions