diff options
author | Jagdish Gediya <[email protected]> | 2018-03-21 05:51:46 +0530 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2018-03-21 10:18:34 +0100 |
commit | 843c3a59997f18060848b8632607dd04781b52d1 (patch) | |
tree | 9fabe393f0ceb368ece5f53242376d1def8391f5 /lib/memory-notifier-error-inject.c | |
parent | fa8e6d58c5bc260f4369c6699683d69695daed0a (diff) |
mtd: nand: fsl_ifc: Fix eccstat array overflow for IFC ver >= 2.0.0
Number of ECC status registers i.e. (ECCSTATx) has been increased in IFC
version 2.0.0 due to increase in SRAM size. This is causing eccstat
array to over flow.
So, replace eccstat array with u32 variable to make it fail-safe and
independent of number of ECC status registers or SRAM size.
Fixes: bccb06c353af ("mtd: nand: ifc: update bufnum mask for ver >= 2.0.0")
Cc: [email protected] # 3.18+
Signed-off-by: Prabhakar Kushwaha <[email protected]>
Signed-off-by: Jagdish Gediya <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions