u-boot-brain/drivers
Martin Krause af56730153 cfi_flash: fix bug with flash banks with different sector numbers
The function find_sector() does not take into account if the flash bank
has changed since the last call. This could lead to illegal accesses inside
and beyond the flash_info_t info strcture. For example if the current
flash bank has less sectors than the last used flash bank.

This patch adds two cheks. One that insures, that the current sector does
not exceed the allowed maximum (which is always a good idea). And one that
checks if the current access is to the same flash bank as the last access.
If not, the search loop will start with sector 0.

Signed-off-by: Martin Krause <martin.krause@tqs.de>
Signed-off-by: Stefan Roese <sr@denx.de>
2011-03-28 19:06:51 +02:00
..
bios_emulator Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
block MXC: removed warnings from IMX51 ATA driver 2011-02-02 00:54:43 +01:00
dma Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
fpga add Xilinx_abort_fn to Xilinx_Spartan3_Slave_Serial_fns 2010-11-30 21:59:21 +01:00
gpio mvmfp: add MFP configuration support for PANTHEON 2011-02-21 08:30:55 +01:00
hwmon Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
i2c I2C: mxc_i2c: address failure with mx35 processor 2011-02-02 00:54:43 +01:00
input Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
misc fsl_law: Fix LAW printing function 2011-02-22 23:25:19 -06:00
mmc S5P: mmc: Resolved interrupt error during mmc_init 2011-03-27 19:20:26 +02:00
mtd cfi_flash: fix bug with flash banks with different sector numbers 2011-03-28 19:06:51 +02:00
net net: ftmac100: update get_timer() usages 2011-03-21 22:54:23 +01:00
pci Minor Coding Style Cleanup. 2011-02-02 22:36:10 +01:00
pcmcia Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
power ftpmu010: support faraday ftpmu010 driver 2011-01-25 22:18:57 +01:00
qe UEC: Fix compiler warnings introduced by linux/mii.h change 2011-01-25 21:15:10 +01:00
rtc eNET: Add RTC support to eNET 2011-02-12 15:11:43 +11:00
serial serial: add pantheon soc support 2011-02-21 08:30:55 +01:00
spi Coding Style cleanup: remove trailing empty lines 2011-03-27 21:48:08 +02:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb Coding Style cleanup: remove trailing empty lines 2011-03-27 21:48:08 +02:00
video video/mx3fb: fix clock divider 2010-12-17 21:24:02 +01:00
watchdog Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00