MTD: slc-nand: fix boot system failed due to pointer out-bounds operating [1/1]
authorxianjun.liu <xianjun.liu@amlogic.com>
Mon, 28 Oct 2019 08:05:39 +0000 (16:05 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 29 Oct 2019 05:29:02 +0000 (22:29 -0700)
commit66d572f27f9477301a4fac6514430868e8cc7281
tree27817ef845f12a6a3adc8149a556c2b8e18e9cbd
parent035c54e5c273a23462d399a1507cfaff45be440e
MTD: slc-nand: fix boot system failed due to pointer out-bounds operating [1/1]

PD#SWPL-15894

Problem:
The audio 113D platform + TC58NVG2S0HTA00 boot system failed due
to pointer out-bounds operating

Solution:
reduce oobavail value to avoid pointer access overbounds

Verify:
AXG-S400

Change-Id: I737d16b937b39b0b03c9248e6688c1158face3b5
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
drivers/amlogic/mtd/aml_nand.c