1. 19 6月, 2013 1 次提交
    • J
      NET: Fix system hanging if NET device is not installed · 7315cfd9
      Jim Lin 提交于
      If we try to boot from NET device, NetInitLoop in net.c will be invoked.
      If NET device is not installed, eth_get_dev() function will return
      eth_current value, which is NULL.
      When NetInitLoop is called, "eth_get_dev->enetaddr" will access
      restricted memory area and therefore cause hanging.
      This issue is found on Tegra30 Cardhu platform after adding
      CONFIG_CMD_NET and CONFIG_CMD_DHCP in config header file.
      Signed-off-by: NJim Lin <jilin@nvidia.com>
      Tested-by: NStephen Warren <swarren@nvidia.com>
      7315cfd9
  2. 17 6月, 2013 1 次提交
  3. 15 6月, 2013 1 次提交
  4. 14 6月, 2013 18 次提交
  5. 13 6月, 2013 16 次提交
  6. 12 6月, 2013 3 次提交
    • T
      077becc3
    • M
      ppc: ppmc7xx: Fix possible out-of-bound access · 8cf69553
      Marek Vasut 提交于
      The flash_info_t->start[] field is limited in size by CONFIG_SYS_MAX_FLASH_SECT
      macro, which is set to 19 for this board in the board config file. If we inspect
      the board/ppmc7xx/flash.c closely, especially the flash_get_size() function, we
      can notice the "switch ((long)flashtest)" at around line 80 having a few results
      which will set flash_info_t->sector_count to value higher than 19, for example
      "case AMD_ID_LV640U" will set it to 128. Notice that right underneath, iteration
      over flash_info_t->start[] happens and the upper bound for the interation is
      flash_info_t->sector_count. Now if the sector_count is 128 as it is for the
      AMD_ID_LV640U case, but the CONFIG_SYS_MAX_FLASH_SECT limiting the start[] is
      only 19, an access past the start[] array much happen. Moreover, during this
      iteration, the field is written to, so memory corruption is inevitable.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Richard Danter <richard.danter@windriver.com>
      8cf69553
    • S
      powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7 · a166fbca
      Scott Wood 提交于
      C99's strict aliasing rules are insane to use in low-level code such as a
      bootloader, but as Wolfgang has rejected -fno-strict-aliasing in the
      past, add a union so that 16-bit accesses can be performed.
      
      Compile-tested only.
      Signed-off-by: NScott Wood <scottwood@freescale.com>
      Acked-by: NWolfgang Denk <wd@denx.de>
      a166fbca