Skip to content
Snippets Groups Projects
  1. Mar 31, 2011
  2. Mar 28, 2011
    • Martin Krause's avatar
      cfi_flash: fix bug with flash banks with different sector numbers · af567301
      Martin Krause authored
      
      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: default avatarMartin Krause <martin.krause@tqs.de>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      af567301
  3. Mar 27, 2011
  4. Mar 24, 2011
  5. Mar 22, 2011
  6. Mar 21, 2011
  7. Mar 16, 2011
Loading