]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: rawnand: cortina_nand: missing initialization
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 20 Feb 2021 09:42:50 +0000 (10:42 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 24 Feb 2021 21:51:49 +0000 (16:51 -0500)
commit95f481d235018ff97cf7696b4720cda50746ca4c
tree51eae737d57374c7d36e66f2649ebec4391b7c7c
parent63b45c05c8bd49b55f443b287b167bb1d38b5b9d
mtd: rawnand: cortina_nand: missing initialization

ca_do_bch_correction() takes a random value from the stack and starts
counting bitflips from this value. Initialize the counter.

This passed unnoticed as the value is finally ignored in the call
hierarchy.

Fixes: bd674b7201ea ("mtd: rawnand: cortina_nand: Add Cortina CAxxxx SoC support")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/mtd/nand/raw/cortina_nand.c