Skip to content
Snippets Groups Projects
  1. Aug 13, 2015
  2. Apr 19, 2015
  3. Apr 18, 2015
  4. Mar 06, 2015
  5. Jan 29, 2015
  6. Jan 28, 2015
  7. Jan 05, 2015
    • Przemyslaw Marczak's avatar
      fs: fat: read: fix fat16 ls/read issue · 64f65e1e
      Przemyslaw Marczak authored
      
      The present fat implementation ignores FAT16 long name
      directory entries which aren't placed in a single sector.
      
      This was becouse of the buffer was always filled by the
      two sectors, and the loop was made also for two sectors.
      
      If some file long name entries are stored in two sectors,
      the we have two cases:
      
      Case 1:
      Both of sectors are in the buffer - all required data
      for long file name is in the buffer.
      - Read OK!
      
      Case 2:
      The current directory entry is placed at the end of the
      second buffered sector. And the next entries are placed
      in a sector which is not buffered yet. Then two next
      sectors are buffered and the mentioned entry is ignored.
      - Read fail!
      
      This commit fixes this issue by:
      - read two sectors after loop on each single is done
      - keep the last used sector as a first in the buffer
        before the read of two next
      
      The commit doesn't affects the fat32 imlementation,
      which works good as previous.
      
      Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Mikhail Zolotaryov <lebon@lebon.org.ua>
      Cc: Tom Rini <trini@ti.com>
      Cc: Stephen Warren <swarren@nvidia.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Suriyan Ramasami <suriyan.r@gmail.com>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Tested-by: default avatarSimon Glass <sjg@chomium.org>
      64f65e1e
  8. Dec 01, 2014
  9. Nov 23, 2014
  10. Nov 20, 2014
    • Masahiro Yamada's avatar
      include: move various macros to include/linux/kernel.h · cba1da49
      Masahiro Yamada authored
      
      U-Boot has imported various utility macros from Linux
      scattering them to various places without consistency.
      
      In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN,
      container_of, DIV_ROUND_UP, etc.
      In include/linux/compat.h are min_t, max_t, round_up, round_down,
      etc.
      We also have duplicated defines of min_t in some *.c files.
      
      Moreover, we are suffering from too cluttered include/common.h.
      
      This commit moves various macros that originate in
      include/linux/kernel.h of Linux to their original position.
      
      Note:
      This commit simply moves the macros; the macros roundup,
      min, max, min2, max3, ARRAY_SIZE are different
      from those of Linux at this point.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      cba1da49
  11. Nov 10, 2014
    • Jorgen Lundman's avatar
      ZFS: Clean up cppcheck warnings where relevant, leaked memory etc · e183de0d
      Jorgen Lundman authored
      
      In a message from Wolfgang Denk highlighting warnings from cppcheck,
      the patch will address those that are correctly diagnosed. Some are
      false-positives:
      
      > [fs/zfs/zfs.c:937]: (error) Memory leak: l
      dmu_read() allocates "l" if successful, so error-case should not free
      it.
      > [fs/zfs/zfs.c:1141]: (error) Memory leak: dnbuf
      dmu_read() allocates "dnbuf" if successful, so error-case should not
      free it.
      > [fs/zfs/zfs.c:1372]: (error) Memory leak: osp
      zio_read() allocates "osp" if successful, so error-case should
      not free it.
      > [fs/zfs/zfs.c:1726]: (error) Memory leak: nvlist
      int_zfs_fetch_nvlist() allocates "nvlist" if successful, so error-case
      should not free it.
      
      Signed-off-by: default avatarJorgen Lundman <lundman@lundman.net>
      e183de0d
  12. Oct 27, 2014
  13. Sep 24, 2014
  14. Sep 16, 2014
  15. Aug 25, 2014
    • Heiko Schocher's avatar
      mtd,ubi,ubifs: sync with linux v3.15 · 4e67c571
      Heiko Schocher authored
      
      snyc with linux v3.15:
      
      commit 1860e379875dfe7271c649058aeddffe5afd9d0d
      Author: Linus Torvalds <torvalds@linux-foundation.org>
      Date:   Sun Jun 8 11:19:54 2014 -0700
      
          Linux 3.15
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Tom Rini <trini@ti.com>
      4e67c571
    • Heiko Schocher's avatar
      mtd, ubi, ubifs: update for the sync with linux v3.14 · ddf7bcfa
      Heiko Schocher authored
      
      while playing with the new mtd/ubi/ubifs sync, found some
      small updates for it:
      
      - add del_mtd_partition() to include/linux/mtd/mtd
      - mtd: add a debug_printf
      - remove some not used functions
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Tom Rini <trini@ti.com>
      ddf7bcfa
    • Heiko Schocher's avatar
      mtd, ubi, ubifs: resync with Linux-3.14 · ff94bc40
      Heiko Schocher authored
      
      resync ubi subsystem with linux:
      
      commit 455c6fdbd219161bd09b1165f11699d6d73de11c
      Author: Linus Torvalds <torvalds@linux-foundation.org>
      Date:   Sun Mar 30 20:40:15 2014 -0700
      
          Linux 3.14
      
      A nice side effect of this, is we introduce UBI Fastmap support
      to U-Boot.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Sergey Lapin <slapin@ossfans.org>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Joerg Krause <jkrause@posteo.de>
      ff94bc40
    • Heiko Schocher's avatar
      lib, linux: move linux specific defines to linux/compat.h · 0c06db59
      Heiko Schocher authored
      
      - move linux specific defines from usb and video code
        into linux/compat.h
      - move common linux specific defines from include/ubi_uboot.h
        to linux/compat.h
      - add for new mtd/ubi/ubifs sync new needed linux specific
        defines to linux/compat.h
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      [trini: Add spin_lock_irqsave/spin_unlock_irqrestore dummies from
      usb/lin_gadet_compat.h]
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      0c06db59
  16. Aug 09, 2014
    • Stephen Warren's avatar
      fs: implement size/fatsize/ext4size · cf659819
      Stephen Warren authored
      
      These commands may be used to determine the size of a file without
      actually reading the whole file content into memory. This may be used
      to determine if the file will fit into the memory buffer that will
      contain it. In particular, the DFU code will use it for this purpose
      in the next commit.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      cf659819
  17. Jul 22, 2014
  18. Jul 18, 2014
  19. Jun 19, 2014
    • Stephen Warren's avatar
      fs: ext4: fix writing zero-length files · d0180280
      Stephen Warren authored
      
      ext4fs_allocate_blocks() always allocates at least one block for a file.
      If the file size is zero, this causes total_remaining_blocks to
      underflow, which then causes an apparent hang while 2^32 blocks are
      allocated.
      
      To solve this, check that total_remaining_blocks is non-zero as part of
      the loop condition (i.e. before each loop) rather than at the end of
      the loop.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      d0180280
  20. Jun 11, 2014
Loading