1. 31 Oct, 2012 6 commits
    • Linus Torvalds's avatar
      Merge tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 33046957
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "This contains unexpectedly many changes in a wide range due to the
        fixes for races at disconnection of USB audio devices.  In the end, we
        end up covering fairly core parts of sound subsystem.
      
        Other than that, just a few usual small fixes."
      
      * tag 'sound-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: ice1724: Fix rate setup after resume
        ALSA: Avoid endless sleep after disconnect
        ALSA: Add a reference counter to card instance
        ALSA: usb-audio: Fix races at disconnection in mixer_quirks.c
        ALSA: usb-audio: Use rwsem for disconnect protection
        ALSA: usb-audio: Fix races at disconnection
        ALSA: PCM: Fix some races at disconnection
        ASoC: omap-dmic: Correct functional clock name
        ASoC: zoom2: Fix compile error by including correct header files
        ALSA: hda - Fix mute-LED setup for HP dv5 laptop
      33046957
    • Takashi Iwai's avatar
      ALSA: ice1724: Fix rate setup after resume · 16c2e1fa
      Takashi Iwai authored
      The rate isn't restored properly after resume since it's only set up
      in hw_params, and not in prepare callback.  For fixing it, put the
      corresponding call to resume callback as well.
      Reported-and-tested-by: default avatarOndrej Zary <linux@rainbow-software.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      16c2e1fa
    • Al Viro's avatar
      Return the right error value when dup[23]() newfd argument is too large · 08f05c49
      Al Viro authored
      Jack Lin reports that the error return from dup3() for the RLIMIT_NOFILE
      case changed incorrectly after 3.6.
      
      The culprit is commit f33ff992 ("take rlimit check to callers of
      expand_files()") which when it moved the "return -EMFILE" out to the
      caller, didn't notice that the dup3() had special code to turn the
      EMFILE return into EBADF.
      
      The replace_fd() helper that got added later then inherited the bug too.
      Reported-by: default avatarJack Lin <linliangjie@huawei.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      [ Noted more bugs, wrote proper changelog, fixed up typos - Linus ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      08f05c49
    • Linus Torvalds's avatar
      Merge tag 'md-3.7-fixes' of git://neil.brown.name/md · 2df4f261
      Linus Torvalds authored
      Pull md fixes from NeilBrown:
       "Some fixes for md in 3.7
         - one recently introduced crash for dm-raid10 with discard
         - one bug in new functionality that has been around for a few
           releases.
         - minor bug in md's 'faulty' personality
      
        and UAPI disintegration for md."
      
      * tag 'md-3.7-fixes' of git://neil.brown.name/md:
        MD RAID10: Fix oops when creating RAID10 arrays via dm-raid.c
        md/raid1: Fix assembling of arrays containing Replacements.
        md faulty: use disk_stack_limits()
        UAPI: (Scripted) Disintegrate include/linux/raid
      2df4f261
    • Jonathan Brassow's avatar
      MD RAID10: Fix oops when creating RAID10 arrays via dm-raid.c · ed30be07
      Jonathan Brassow authored
      Commit 2863b9eb didn't take into account the changes to add TRIM support to
      RAID10 (commit 532a2a3f).  That is, when using dm-raid.c to create the
      RAID10 arrays, there is no mddev->gendisk or mddev->queue.  The code added
      to support TRIM simply assumes that mddev->queue is available without
      checking.  The result is an oops any time dm-raid.c attempts to create a
      RAID10 device.
      Signed-off-by: default avatarJonathan Brassow <jbrassow@redhat.com>
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      ed30be07
    • NeilBrown's avatar
      md/raid1: Fix assembling of arrays containing Replacements. · 02b898f2
      NeilBrown authored
      setup_conf in raid1.c uses conf->raid_disks before assigning
      a value.  It is used when including 'Replacement' devices.
      
      The consequence is that assembling an array which contains a
      replacement will misbehave and either not include the replacement, or
      not include the device being replaced.
      
      Though this doesn't lead directly to data corruption, it could lead to
      reduced data safety.
      
      So use mddev->raid_disks, which is initialised, instead.
      
      Bug was introduced by commit c19d5798
            md/raid1: recognise replacements when assembling arrays.
      
      in 3.3, so fix is suitable for 3.3.y thru 3.6.y.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      02b898f2
  2. 30 Oct, 2012 23 commits
  3. 29 Oct, 2012 3 commits
  4. 28 Oct, 2012 8 commits