Skip to content
Snippets Groups Projects
  1. Oct 12, 2008
  2. Oct 08, 2008
  3. Oct 07, 2008
  4. Oct 02, 2008
    • Mike Frysinger's avatar
      cfi_flash: do not reset flash when probe fails · 2215987e
      Mike Frysinger authored
      
      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: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      2215987e
  5. Sep 24, 2008
  6. Sep 22, 2008
  7. Sep 21, 2008
  8. Sep 19, 2008
  9. Sep 18, 2008
  10. Sep 17, 2008
  11. Sep 16, 2008
  12. Sep 13, 2008
Loading