12 Apr, 2012

4 commits

  • Pull sound fixes from Takashi Iwai:
    - A series of fixes for Conexant 20549 HD-audio codec chip
    - A workaround for HDMI hotplug debug prints that annoyed people
    - A fix for the new support of platform DAPM contexts
    - Many driver-specific minor fixes

    * tag 'sound-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: hda - hide HDMI/ELD printks unless snd.debug=2
    ALSA: sound/isa/sscape.c: add missing resource-release code
    sound: sound/oss/msnd_pinnacle.c: add vfrees
    ALSA: hda - clean up CX20549 test mixer setup
    ALSA: hda - CX20549 doesn't need pin_amp_workaround.
    ALSA: hda - Remove CD control from model=benq for CX20549
    ALSA: hda - fix record volume controls of CX20459 ("Venice")
    ALSA: hda - Rename capture sources of CX20549 to match common conventions
    ALSA: hda - Fix proc output for ADC amp values of CX20549
    ASoC: tegra: fix i2s compilation when !CONFIG_DEBUG_FS
    ASoC: set idle_bias_off=1 for all platform DAPM contexts
    ASoC: imx-audmux: Check for NULL pointer
    ASoC: imx-audmux: Fix ssi port numbers in sysfs
    ASoC: ak4642: fixup: mute needs +1 step
    MAINTAINERS: Don't list everyone working on Wolfson drivers
    MAINTAINERS: Add missing ASoC OMAP co-maintainer
    ASoC: pxa: pxa2xx-i2s: add io.h for IOMEM macro
    ASoC: tegra: ensure clocks are enabled when touching registers
    ASoC: sgtl5000: Enable VAG when DAC/ADC up
    ALSA: asihpi - fix return value of hpios_locked_mem_alloc()

    Linus Torvalds
     
  • Pull media fixes from Mauro Carvalho Chehab:

    - dvb core: there is a regression found when used with xine. For
    whatever unknown reason, xine (and xine-lib clients) wants that the
    frontend to tell what frequency he is using even before the PLL lock
    (or at least, it expects a non-zero frequency).

    On DVB, the frequency is only actually known after a frequency
    zig-zag seek, done by the DVB core. Anyway, the fix was trivial.
    That solves Fedora BZ#808871.

    - ivtv: fix a regression when selecting the language channel

    - uvc: fix a race-related crash

    - it913x: fixes firmware loading

    - two trivial patches (a dependency issue at a radio driver at sound
    Kconfig, and a warning fix on dvb).

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] uvcvideo: Fix race-related crash in uvc_video_clock_update()
    [media] Drivers/media/radio: Fix build error
    [media] dvb_frontend: fix compiler warning
    [media] it913x: fix firmware loading errors
    [media] ivtv: Fix AUDIO_(BILINGUAL_)CHANNEL_SELECT regression
    [media] dvb_frontend: regression fix: userspace ABI broken for xine

    Linus Torvalds
     
  • Pull GFS2 fixes from Steven Whitehouse

    * git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-fixes:
    GFS2: Allow caching of rindex glock
    GFS2: Make sure rindex is uptodate before starting transactions
    GFS2: use depends instead of select in kconfig
    GFS2: put glock reference in error patch of read_rindex_entry

    Linus Torvalds
     
  • This merges the 32- and 64-bit versions of the x86 strncpy_from_user()
    by just rewriting it in C rather than the ancient inline asm versions
    that used lodsb/stosb and had been duplicated for (trivial) differences
    between the 32-bit and 64-bit versions.

    While doing that, it also speeds them up by doing the accesses a word at
    a time. Finally, the new routines also properly handle the case of
    hitting the end of the address space, which we have never done correctly
    before (fs/namei.c has a hack around it for that reason).

    Despite all these improvements, it actually removes more lines than it
    adds, due to the de-duplication. Also, we no longer export (or define)
    the legacy __strncpy_from_user() function (that was defined to not do
    the user permission checks), since it's not actually used anywhere, and
    the user address space checks are built in to the new code.

    Other architecture maintainers have been notified that the old hack in
    fs/namei.c will be going away in the 3.5 merge window, in case they
    copied the x86 approach of being a bit cavalier about the end of the
    address space.

    Cc: linux-arch@vger.kernel.org
    Cc: Ingo Molnar
    Cc: Peter Anvin"
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

11 Apr, 2012

5 commits

  • keyctl_session_to_parent(task) sets ->replacement_session_keyring,
    it should be processed and cleared by key_replace_session_keyring().

    However, this task can fork before it notices TIF_NOTIFY_RESUME and
    the new child gets the bogus ->replacement_session_keyring copied by
    dup_task_struct(). This is obviously wrong and, if nothing else, this
    leads to put_cred(already_freed_cred).

    change copy_creds() to clear this member. If copy_process() fails
    before this point the wrong ->replacement_session_keyring doesn't
    matter, exit_creds() won't be called.

    Cc:
    Signed-off-by: Oleg Nesterov
    Acked-by: David Howells
    Signed-off-by: Linus Torvalds

    Oleg Nesterov
     
  • This fixes builds where CONFIG_AUDIT is not defined and
    CONFIG_SECURITY_SMACK=y.

    This got introduced by the stack-usage reducation commit 48c62af68a40
    ("LSM: shrink the common_audit_data data union").

    Signed-off-by: Kees Cook
    Acked-by: Eric Paris
    Signed-off-by: Linus Torvalds

    Kees Cook
     
  • Pull dmaengine fixes from Dan Williams:

    1/ regression fix for Xen as it now trips over a broken assumption
    about the dma address size on 32-bit builds

    2/ new quirk for netdma to ignore dma channels that cannot meet
    netdma alignment requirements

    3/ fixes for two long standing issues in ioatdma (ring size overflow)
    and iop-adma (potential stack corruption)

    * tag 'dmaengine-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/dmaengine:
    netdma: adding alignment check for NETDMA ops
    ioatdma: DMA copy alignment needed to address IOAT DMA silicon errata
    ioat: ring size variables need to be 32bit to avoid overflow
    iop-adma: Corrected array overflow in RAID6 Xscale(R) test.
    ioat: fix size of 'completion' for Xen

    Linus Torvalds
     
  • Pull sparc fixes from David Miller:

    1) Build fix for LEON, from Sam Ravnborg.

    2) Make the sparc side changes that go along with the infrastructure to
    retry faults when blocking on a disk transfer. From Kautuk Consul.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
    sparc32,leon: fix leon build
    sparc/mm/fault_32.c: Port OOM changes to do_sparc_fault
    sparc/mm/fault_64.c: Port OOM changes to do_sparc64_fault

    Linus Torvalds
     
  • Pull a regulator build fix from Mark Brown:
    "Fix a build warning in the anatop driver for 3.4

    This is a trivial rename to stop the build system complaining that
    we're referencing things we shouldn't be."

    * tag 'regulator-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
    regulator: anatop: fix 'anatop_regulator' name collision

    Linus Torvalds
     

10 Apr, 2012

14 commits

  • Pull UML fixes from Richard Weinberger.

    * 'for-3.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
    um: uml_setup_stubs': warning: unused variable 'pages'
    um: Use asm-generic/switch_to.h
    um: Disintegrate asm/system.h
    um: switch cow_user.h to htobe{32,64}/betoh{32,64}
    um: several x86 hw-dependent crypto modules won't build on uml
    um: fix linker script generation

    Linus Torvalds
     
  • Don't call i2c_enable on resume because it causes a spurious
    interrupt.

    Signed-off-by: Kristen Carlson Accardi
    Signed-off-by: Kirill A. Shutemov
    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Kristen Carlson Accardi
     
  • Also remove two warnings when CONFIG_SND_DEBUG is not set:

    sound/pci/hda/patch_hdmi.c: In function ‘hdmi_intrinsic_event’:
    sound/pci/hda/patch_hdmi.c:761:6: warning: unused variable ‘eldv’ [-Wunused-variable]
    sound/pci/hda/patch_hdmi.c:760:6: warning: unused variable ‘pd’ [-Wunused-variable]

    Signed-off-by: Wu Fengguang
    Signed-off-by: Takashi Iwai

    Fengguang Wu
     
  • This patch allows caching of the rindex glock. We were previously
    setting the GL_NOCACHE bit when the glock was released. That forced
    the rindex inode to be invalidated, which caused us to re-read
    rindex at the next access. However, it caused the glock to be
    unnecessarily bounced around the cluster. This patch allows
    the glock to remain cached, but it still causes the rindex to be
    re-read once it has been written to by gfs2_grow.

    Ben and I have tested single-node gfs2_grow cases and I've tested
    clustered gfs2_grow cases on my four-node cluster.

    Signed-off-by: Bob Peterson
    Signed-off-by: Steven Whitehouse

    Bob Peterson
     
  • At the point of this error-handling code, both regions and the dma have
    been allocated, so free it as done in previous and subsequent
    error-handling code.

    Signed-off-by: Julia Lawall
    Signed-off-by: Takashi Iwai

    Julia Lawall
     
  • At the point of this error-handling code, HAVE_DSPCODEH may be undefined,
    so free INITCODE and PERMCODE as done elsewhere. A jump and label are
    introduced to avoid code duplication.

    Signed-off-by: Julia Lawall
    Signed-off-by: Takashi Iwai

    Julia Lawall
     
  • Commit f02e8a6596b7 ("module: Sort exported symbols") sorts symbols
    placing each of them in its own elf section. This sorting and merging
    into the canonical sections are done by the linker.

    Unfortunately modpost to generate Module.symvers file parses vmlinux.o
    (which is not linked yet) and all modules object files (which aren't
    linked yet). These aren't sanitized by the linker yet. That breaks
    modpost that can't detect license properly for modules.

    This patch makes modpost aware of the new exported symbols structure.

    [ This above is a slightly corrected version of the explanation of the
    problem, copied from commit 62a2635610db ("modpost: Fix modpost's
    license checking V3"). That commit fixed the problem for module
    object files, but not for vmlinux.o. This patch fixes modpost for
    vmlinux.o. ]

    Signed-off-by: Frank Rowand
    Signed-off-by: Alessio Igor Bogani
    Signed-off-by: Linus Torvalds

    Frank Rowand
     
  • The task handoff notifier leaks task_struct since it never gets freed
    after the callback returns NOTIFY_OK, which means it is responsible for
    doing so.

    It turns out the lowmemorykiller actually doesn't need this notifier at
    all. It's used to prevent unnecessary killing by waiting for a thread
    to exit as a result of lowmem_shrink(), however, it's possible to do
    this in the same way the kernel oom killer works by setting TIF_MEMDIE
    and avoid killing if we're still waiting for it to exit.

    The kernel oom killer will already automatically set TIF_MEMDIE for
    threads that are attempting to allocate memory that have a fatal signal.
    The thread selected by lowmem_shrink() will have such a signal after the
    lowmemorykiller sends it a SIGKILL, so this won't result in an
    unnecessary use of memory reserves for the thread to exit.

    This has the added benefit that we don't have to rely on
    CONFIG_PROFILING to prevent needlessly killing tasks.

    Reported-by: Werner Landgraf
    Cc: stable@vger.kernel.org
    Signed-off-by: David Rientjes
    Acked-by: Colin Cross
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • Fix the following gcc complain
    arch/um/kernel/skas/mmu.c: In function 'uml_setup_stubs':
    arch/um/kernel/skas/mmu.c:106:16: warning: unused variable 'pages' [-Wunused-variable]

    Signed-Signed-off-by: Boaz Harrosh
    Signed-off-by: Richard Weinberger

    Boaz Harrosh
     
  • Signed-off-by: Richard Weinberger

    Richard Weinberger
     
  • Signed-off-by: Richard Weinberger
    Reported-by: Toralf Förster
    CC: dhowells@redhat.com

    Richard Weinberger
     
  • ... rather than open-coding the 64bit versions. endian.h has those guys.

    Signed-off-by: Al Viro
    Signed-off-by: Richard Weinberger

    Al Viro
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • while we can't just use -U$(SUBARCH), we still need to kill idiotic define
    (implicit -Di386=1), both for SUBARCH=i386 and SUBARCH=x86/CONFIG_64BIT=n
    builds.

    Signed-off-by: Al Viro

    Al Viro
     

09 Apr, 2012

6 commits

  • The driver frees the clock samples buffer before stopping the video
    buffers queue. If a DQBUF call arrives in-between,
    uvc_video_clock_update() will be called with a NULL clock samples
    buffer, leading to a crash. This occurs very frequently when using the
    webcam with the flash browser plugin.

    Move clock initialization/cleanup to uvc_video_enable() in order to free
    the clock samples buffer after the queue is stopped. Make sure the clock
    is reset at resume time to avoid miscalculating timestamps.

    Signed-off-by: Laurent Pinchart
    Cc: stable@vger.kernel.org
    Signed-off-by: Mauro Carvalho Chehab

    Laurent Pinchart
     
  • On Sunday, April 01, 2012 21:09:34 Tracey Dent wrote:
    > radio-maxiradio depends on SND_FM801_TEA575X_BOOL to build or will
    > result in an build error such as:
    >
    > Kernel: arch/x86/boot/bzImage is ready (#1)
    > ERROR: "snd_tea575x_init" [drivers/media/radio/radio-maxiradio.ko] undefined!
    > ERROR: "snd_tea575x_exit" [drivers/media/radio/radio-maxiradio.ko] undefined!
    > WARNING: modpost: Found 6 section mismatch(es).
    > To see full details build your kernel with:
    > 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
    > make[1]: *** [__modpost] Error 1
    > make: *** [modules] Error 2
    >
    > Select CONFIG_SND_TEA575X to fixes problem and enable
    > the driver to be built as desired.
    >
    > v2:
    > instead of selecting CONFIG_SND_FM801_TEA575X_BOOL, select
    > CONFIG_SND_TEA575X, which in turns selects CONFIG_SND_FM801_TEA575X_BOOL
    > and any other dependencies for it to build.

    No, this is the correct patch:

    RADIO_MAXIRADIO should be treated just like RADIO_SF16FMR2, I just didn't
    realize at the time that it had to be added as a SND_TEA575X dependency.

    Signed-off-by: Hans Verkuil
    Tested-by: Shea Levy
    Acked-by: Mauro Carvalho Chehab
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • has_get_frontend() should return a boolean, not a pointer.

    Signed-off-by: Hans Petter Selasky
    Signed-off-by: Mauro Carvalho Chehab

    Hans Petter Selasky
     
  • On some systems the device does not respond or give obscure values after cold,
    warm or firmware reboot.

    This patch retries to get chip version and type 5 times. If it
    fails it applies chip version 0x1 and type 0x9135.

    This patch does not fix warm cycle problems from other operating
    systems and indeed the reverse applies. Users should power off cold boot.

    Signed-off-by: Malcolm Priestley
    Signed-off-by: Mauro Carvalho Chehab

    Malcolm Priestley
     
  • When I converted ivtv to the new decoder API I introduced a regression in the
    support of the old channel select API.

    Thanks to Martin Dauskardt for reporting this.

    Signed-off-by: Hans Verkuil
    Reviewed-by: Andy Walls
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The commit e399ce77e6e has broken the DVB ABI for xine:

    The problem is that xine is expecting every event after a successful
    FE_SET_FRONTEND ioctl to have a non-zero frequency parameter, regardless
    of whether the tuning process has LOCKed yet. What used to happen is
    that the events inherited the initial tuning parameters from the
    FE_SET_FRONTEND call. However, the fepriv->parameters_out struct is now
    not initialised until the status contains the FE_HAS_LOCK bit.

    You might argue that this behaviour is intentional, except that if an
    application other than xine uses the DVB adapter and manages to set the
    parameters_out.frequency field to something other than zero, then xine
    no longer has any problems until either the adapter is replugged or the
    kernel modules reloaded. This can only mean that the
    fepriv->parameters_out struct still contains the (stale) tuning
    information from the previous application.

    Signed-off-by: Chris Rankin
    Cc: stable@kernel.org # for kernel version 3.3
    Signed-off-by: Mauro Carvalho Chehab

    Chris Rankin
     

08 Apr, 2012

5 commits


07 Apr, 2012

6 commits