1. 10 Oct, 2012 5 commits
    • Sachin Kamat's avatar
      mtd: ofpart: Fix incorrect NULL check in parse_ofoldpart_partitions() · 5a6ea4af
      Sachin Kamat authored
      The pointer returned by kzalloc should be tested for NULL
      to avoid potential NULL pointer dereference later. Incorrect
      pointer was being tested for NULL. Bug introduced by commit fbcf62a3
      (mtd: physmap_of: move parse_obsolete_partitions to become separate
      parser).
      This patch fixes this bug.
      
      Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Cc: Artem Bityutskiy <artem.bityutskiy@intel.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
      5a6ea4af
    • Brian Norris's avatar
      mtd: nand: fix Samsung SLC NAND identification regression · bc86cf7a
      Brian Norris authored
      A combination of the following two commits caused a regression in 3.7-rc1
      when identifying some Samsung NAND, so that some previously working NAND
      were no longer detected properly:
      
          commit e3b88bd6
          mtd: nand: add generic READ ID length calculation functions
      
          commit e2d3a35e
          mtd: nand: detect Samsung K9GBG08U0A, K9GAG08U0F ID
      
      Particularly, a regression was seen on Samsung K9F2G08U0B, with the
      following full 8-byte READ ID string:
      
          ec da 10 95 44 00 ec da
      
      The basic problem is that Samsung manufactures both SLC and MLC NAND
      that use a non-standard decoding table for deriving information from
      their IDs. I have heuristically determined that all the chips that use
      the new table have ID strings which wrap around after the 6th byte.
      Unfortunately, I overlooked the fact that some older Samsung SLC (which
      use a different decoding table) have "5 byte ID strings" which also wrap
      around after the 6th byte.
      
      This patch re-introduces a distinction between these old and new Samsung
      NAND by checking that the 6th byte is non-zero, allowing both old and
      new Samsung NAND to be detected properly.
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      Tested-by: default avatarBrian Norris <computersforpeace@gmail.com>
      Reported-by: default avatarMarek Vasut <marex@denx.de>
      Tested-by: default avatarMarek Vasut <marex@denx.de>
      Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
      bc86cf7a
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20121009' of git://git.infradead.org/mtd-2.6 · 10f39f04
      Linus Torvalds authored
      Pull MTD updates from David Woodhouse:
      
       - Disable broken mtdchar mmap() on MMU systems
       - Additional ECC tests for NAND flash, and some test cleanups
       - New NAND and SPI chip support
       - Fixes/cleanup for SH FLCTL NAND controller driver
       - Improved hardware support for GPMI NAND controller
       - Conversions to device-tree support for various drivers
       - Removal of obsolete drivers (sbc8xxx, bcmring, etc.)
       - New LPC32xx drivers for MLC and SLC NAND
       - Further cleanup of NAND OOB/ECC handling
       - UAPI cleanup merge from David Howells (just moving files, since MTD
         headers were sorted out long ago to separate user-visible from kernel
         bits)
      
      * tag 'for-linus-20121009' of git://git.infradead.org/mtd-2.6: (168 commits)
        mtd: Disable mtdchar mmap on MMU systems
        UAPI: (Scripted) Disintegrate include/mtd
        mtd: nand: detect Samsung K9GBG08U0A, K9GAG08U0F ID
        mtd: nand: decode Hynix MLC, 6-byte ID length
        mtd: nand: increase max OOB size to 640
        mtd: nand: add generic READ ID length calculation functions
        mtd: nand: split simple ID decode into its own function
        mtd: nand: split extended ID decoding into its own function
        mtd: nand: split BB marker options decoding into its own function
        mtd: nand: remove redundant ID read
        mtd: nand: remove unnecessary variable
        mtd: docg4: add missing HAS_IOMEM dependency
        mtd: gpmi: initialize the timing registers only one time
        mtd: gpmi: add EDO feature for imx6q
        mtd: gpmi: do not set the default values for the extra clocks
        mtd: gpmi: simplify the DLL setting code
        mtd: gpmi: add a new field for HW_GPMI_CTRL1
        mtd: gpmi: do not get the clock frequency in gpmi_begin()
        mtd: gpmi: add a new field for HW_GPMI_TIMING1
        mtd: add helpers to get the supportted ONFI timing mode
        ...
      10f39f04
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs · 72055425
      Linus Torvalds authored
      Pull btrfs update from Chris Mason:
       "This is a large pull, with the bulk of the updates coming from:
      
         - Hole punching
      
         - send/receive fixes
      
         - fsync performance
      
         - Disk format extension allowing more hardlinks inside a single
           directory (btrfs-progs patch required to enable the compat bit for
           this one)
      
        I'm cooking more unrelated RAID code, but I wanted to make sure this
        original batch makes it in.  The largest updates here are relatively
        old and have been in testing for some time."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (121 commits)
        btrfs: init ref_index to zero in add_inode_ref
        Btrfs: remove repeated eb->pages check in, disk-io.c/csum_dirty_buffer
        Btrfs: fix page leakage
        Btrfs: do not warn_on when we cannot alloc a page for an extent buffer
        Btrfs: don't bug on enomem in readpage
        Btrfs: cleanup pages properly when ENOMEM in compression
        Btrfs: make filesystem read-only when submitting barrier fails
        Btrfs: detect corrupted filesystem after write I/O errors
        Btrfs: make compress and nodatacow mount options mutually exclusive
        btrfs: fix message printing
        Btrfs: don't bother committing delayed inode updates when fsyncing
        btrfs: move inline function code to header file
        Btrfs: remove unnecessary IS_ERR in bio_readpage_error()
        btrfs: remove unused function btrfs_insert_some_items()
        Btrfs: don't commit instead of overcommitting
        Btrfs: confirmation of value is added before trace_btrfs_get_extent() is called
        Btrfs: be smarter about dropping things from the tree log
        Btrfs: don't lookup csums for prealloc extents
        Btrfs: cache extent state when writing out dirty metadata pages
        Btrfs: do not hold the file extent leaf locked when adding extent item
        ...
      72055425
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.samba.org/sfrench/cifs-2.6 · fc81c038
      Linus Torvalds authored
      Pull CIFS fixes from Steve French.
      
      * 'for-linus' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: reinstate the forcegid option
        Convert properly UTF-8 to UTF-16
        [CIFS] WARN_ON_ONCE if kernel_sendmsg() returns -ENOSPC
      fc81c038
  2. 09 Oct, 2012 35 commits