summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJagdish Gediya <jagdish.gediya@nxp.com>2018-03-21 05:51:46 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-28 18:39:23 +0200
commiteca95cb6b47a4190d3cf110d51ba186eb40e3a44 (patch)
tree6727910fbf51538c7dd4e9c66a6f24c6ff4a0770 /net
parent9b5dd849509b3df53d0b98eac79d86cdeb54ef2c (diff)
mtd: nand: fsl_ifc: Fix eccstat array overflow for IFC ver >= 2.0.0
commit 843c3a59997f18060848b8632607dd04781b52d1 upstream. 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: stable@vger.kernel.org # 3.18+ Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Signed-off-by: Jagdish Gediya <jagdish.gediya@nxp.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions