u-boot/drivers/mtd
Mike Frysinger 2215987e10 cfi_flash: do not reset flash when probe fails
The CFI flash driver starts at flash_init() which calls down into
flash_get_size().  This starts by calling flash_detect_cfi().  If said
function fails, flash_get_size() finishes by attempting to reset the
flash.  Unfortunately, it does this with an info->portwidth set to 0x10
which filters down into flash_make_cmd() and that happily smashes the
stack by sticking info->portwidth bytes into a cfiword_t variable that
lives on the stack.  On a 64bit system you probably won't notice, but
killing the last 8 bytes on a 32bit system usually leads to a corrupt
return address.  Which is what happens on a Blackfin system.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Stefan Roese <sr@denx.de>
2008-10-02 10:30:32 +02:00
..
nand fsl_elbc_nand: ecclayout cleanups 2008-09-12 14:58:33 -05:00
nand_legacy drivers/mtd/nand_legacy: Move conditional compilation to Makefile 2008-08-13 01:40:43 +02:00
onenand Minor coding style cleanup, updte CHANGELOG 2008-08-25 23:45:41 +02:00
spi mtd: SPI Flash: Support the STMicro Flash 2008-09-09 11:57:29 -06:00
at45.c drivers/mtd: Move conditional compilation to Makefile 2008-08-13 01:40:42 +02:00
cfi_flash.c cfi_flash: do not reset flash when probe fails 2008-10-02 10:30:32 +02:00
dataflash.c DataFlash: AT45DB021 fix and AT45DB081 support 2008-08-09 00:15:06 +02:00
jedec_flash.c cfi-flash: Add definition for the AM29LV800BB AMD NOR-flash 2008-08-06 14:19:06 +02:00
Makefile drivers/mtd: Move conditional compilation to Makefile 2008-08-13 01:40:42 +02:00
mw_eeprom.c Update i386 code (sc520_cdp) 2008-09-09 11:48:53 +02:00