diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-05-25 13:50:20 +0900 |
|---|---|---|
| committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-06-01 10:09:35 +0200 |
| commit | 79e0348c4e24fd1affdcf055e0269755580e0fcc (patch) | |
| tree | 1f2feb76d0f444962a23c5f68e4074d92573ce37 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | mtd: nand: Support 'EXIT GET STATUS' command in nand_command[_lp]() (diff) | |
| download | linux-79e0348c4e24fd1affdcf055e0269755580e0fcc.tar.gz linux-79e0348c4e24fd1affdcf055e0269755580e0fcc.zip | |
mtd: nand: check ecc->total sanity in nand_scan_tail
Drivers are supposed to set correct ecc->{size,strength,bytes} before
calling nand_scan_tail(), but it does not complain about ecc->total
bigger than oobsize.
In this case, chip->scan_bbt() crashes due to memory corruption, but
it is hard to debug. It would be kind to fail it earlier with a clear
message.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
