u-boot/drivers
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
..
bios_emulator Big white-space cleanup. 2008-05-21 00:14:08 +02:00
block drivers/block: Move conditional compilation to Makefile 2008-08-13 01:40:39 +02:00
dma drivers/dma: Move conditional compilation to Makefile 2008-08-13 01:40:39 +02:00
hwmon ppc4xx: Allow DTT_I2C_DEV_CODE configured by CFG_I2C_DTT_ADDR 2008-09-10 11:08:45 +02:00
i2c Merge branch 'Makefile' of git://git.denx.de/u-boot-arm 2008-09-01 00:16:29 +02:00
input drivers/input: Move conditional compilation to Makefile 2008-08-13 01:40:40 +02:00
misc mpc85xx: Add support for the MPC8536 2008-08-27 11:43:54 -05:00
mmc atmel_mci: Fix printf() format warnings 2008-07-23 16:15:01 +02:00
mtd cfi_flash: do not reset flash when probe fails 2008-10-02 10:30:32 +02:00
net Support for multiple SGMII/TBI interfaces for TSEC ethernet 2008-09-16 11:32:45 -05:00
pci sh: Fix compile warning 2008-09-19 11:05:22 +09:00
pcmcia pcmcia/ti_pci1410a: Move compile condition to the Makefile 2008-06-26 17:04:25 +02:00
qe drivers/qe: Move conditional compilation to Makefile 2008-08-13 01:40:41 +02:00
rtc i.MX31: Make the SPI bus and chip select configurable for MC13783 2008-09-12 01:23:44 +02:00
serial sh: Fix typo in SH serial driver 2008-09-19 11:05:22 +09:00
spi soft_spi: move to drivers/spi 2008-08-29 12:25:02 +02:00
usb Make usb-stop() safe to call multiple times in a row. 2008-09-09 16:59:25 +02:00
video 85xx: socrates: Enable Lime support. 2008-09-09 10:14:13 +02:00