mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-14 11:59:19 +01:00
This change will fix NULL pointer dereference while reading from spi nand flash in oobbuf. The multipage read features is only to read with ecc for raw read/write the the access is page wise due to mtd layer will request only one page at a time. So don't increment oobbuf for every page while reading if already bitflips are present in spi nand flash. if so data abort will happen due to NULL pointer dereference. error: NAND read: device 0 offset 0x4480000, size 0x1000 data abort pc : [<4a9515ec>] lr : [<44000e18>] reloc pc : [<4a9515ec>] lr : [<44000e18>] sp : 4a77f6f4 ip : bbfff3dc fp : 4a783510 r10: 4a97bb40 r9 : 4a77feb0 r8 : 44000e0c r7 : 4a97ca2c r6 : 0000000f r5 : 00000004 r4 : 00000003 r3 : ffffffff r2 : 000001f4 r1 : 000000ff r0 : 44000e0c Flags: nzCv IRQs off FIQs off Mode SVC_32 Resetting CPU ... resetting ... Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org> Change-Id: I435f65183b56ceef64bad7d0df7ffebe02175a66 |
||
|---|---|---|
| .. | ||
| nand | ||
| onenand | ||
| spi | ||
| ubi | ||
| altera_qspi.c | ||
| at45.c | ||
| cfi_flash.c | ||
| cfi_mtd.c | ||
| dataflash.c | ||
| ftsmc020.c | ||
| ipq_spi_flash.c | ||
| jedec_flash.c | ||
| Kconfig | ||
| Makefile | ||
| mtd-uclass.c | ||
| mtd_uboot.c | ||
| mtdconcat.c | ||
| mtdcore.c | ||
| mtdcore.h | ||
| mtdpart.c | ||
| mw_eeprom.c | ||
| st_smi.c | ||