1. 25 Apr, 2016 22 commits
  2. 24 Apr, 2016 13 commits
  3. 22 Apr, 2016 5 commits
    • Tom Rini's avatar
    • Heiko Schocher's avatar
      ubifs: fix memory corruption in super.c · b1d6590d
      Heiko Schocher authored
      In list "super_blocks" ubifs collects allocated super_block
      structs. U-Boot frees on unmount the allocated struct,
      so the pointer stored in this list is free after the umount.
      On a new ubifs mount, the new allocated super_block struct
      get inserted into the super_blocks list ... which contains
      now a freed pointer, and the list_add_tail() corrupts the
      freed memory ...
      2 solutions are possible:
      - remove the super_block from the super_blocks list
        on umount
      - as U-Boot does not use the super_blocks list ...
        remove it complete for U-Boot.
      Both solutions should not introduce problems for porting
      to newer linux version, so this patch removes the unused
      super_blocks list, as it saves code size and execution
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
    • Heiko Schocher's avatar
      mtd, ubi: set free_count to zero before walking through erase list · 68fc4490
      Heiko Schocher authored
      Set free_count to zero before walking through ai->erase list
      in wl_init().
      As U-Boot has no workqueue/threads, it immediately calls
      erase_worker(), which increase for each erased block
      free_count. Without this patch, free_count gets after
      this initialized to zero in wl_init(), so the free_count
      variable always has the maybe wrong value 0.
      Detected this behaviour on the dxr2 board, where the
      UBI fastmap gets not written when attaching/dettaching
      on an empty NAND. It drops instead the error message:
      could not find any anchor PEB
      With this patch, fastmap gets written on dettach.
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Reviewed-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
    • Bin Meng's avatar
      x86: Correct typo of Miao Yan's email address · 7b63b183
      Bin Meng authored
      Miao Yan's email address is wrong in fw_cfg.c. Fix it.
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
    • Bin Meng's avatar
      x86: qemu: Drop our own ACPI implementation · 697ec431
      Bin Meng authored
      Our own ACPI implementation (when CONFIG_QEMU_ACPI_TABLE is not set)
      does not build anymore after x86 has been fully converted to DM PCI.
      Instead of trying to fix the build errors, given we now have the ACPI
      support via QEMU's fw_cfg interface, which is a more reliable way to
      generate correct ACPI tables than by ourselves, hence drop our own
      ACPI implementation.
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>