Skip to content
  1. Oct 30, 2012
  2. Oct 28, 2012
  3. Oct 26, 2012
  4. Oct 24, 2012
  5. Oct 22, 2012
  6. Oct 21, 2012
    • Julia Lawall's avatar
      ALSA: sound/isa/opti9xx/miro.c: eliminate possible double free · edb66893
      Julia Lawall authored
      
      
      snd_miro_probe is a static function that is only called twice in the file
      that defines it.  At each call site, its argument is freed using
      snd_card_free.  Thus, there is no need for snd_miro_probe to call
      snd_card_free on its argument on any of its error exit paths.
      
      Because snd_card_free both reads the fields of its argument and kfrees its
      argments, the results of the second snd_card_free should be unpredictable.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      identifier f,free,a;
      parameter list[n] ps;
      type T;
      expression e;
      @@
      
      f(ps,T a,...) {
        ... when any
            when != a = e
        if(...) { ... free(a); ... return ...; }
        ... when any
      }
      
      @@
      identifier r.f,r.free;
      expression x,a;
      expression list[r.n] xs;
      @@
      
      * x = f(xs,a,...);
        if (...) { ... free(a); ... return ...; }
      // </smpl>
      
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      edb66893
    • Linus Torvalds's avatar
      Linux 3.7-rc2 · 6f0c0580
      Linus Torvalds authored
      6f0c0580
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64 · 198190a1
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
       "Main changes:
         - AArch64 Linux compilation fixes following 3.7-rc1 changes
           (MODULES_USE_ELF_RELA, update_vsyscall() prototype)
         - Unnecessary register setting in start_thread() (thanks to Al Viro)
         - ptrace fixes"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64:
        arm64: fix alignment padding in assembly code
        arm64: ptrace: use HW_BREAKPOINT_EMPTY type for disabled breakpoints
        arm64: ptrace: make structure padding explicit for debug registers
        arm64: No need to set the x0-x2 registers in start_thread()
        arm64: Ignore memory blocks below PHYS_OFFSET
        arm64: Fix the update_vsyscall() prototype
        arm64: Select MODULES_USE_ELF_RELA
        arm64: Remove duplicate inclusion of mmu_context.h in smp.c
      198190a1
    • Takashi Iwai's avatar
      ALSA: hda - Fix silent headphone output from Toshiba P200 · cb766404
      Takashi Iwai authored
      
      
      By some reason, Toshiba laptop doesn't like the EAPD turned up for the
      headphone pin.  Add a fix up code to force to turn down EAPD for NID
      0x15.
      
      Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=569991
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      cb766404
  7. Oct 20, 2012
    • Marc Zyngier's avatar
      arm64: fix alignment padding in assembly code · aeed41a9
      Marc Zyngier authored
      
      
      An interesting effect of using the generic version of linkage.h
      is that the padding is defined in terms of x86 NOPs, which can have
      even more interesting effects when the assembly code looks like this:
      
      ENTRY(func1)
      	mov	x0, xzr
      ENDPROC(func1)
      	// fall through
      ENTRY(func2)
      	mov	x0, #1
      	ret
      ENDPROC(func2)
      
      Admittedly, the code is not very nice. But having code from another
      architecture doesn't look completely sane either.
      
      The fix is to add arm64's version of linkage.h, which causes the insertion
      of proper AArch64 NOPs.
      
      Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      aeed41a9
    • Adrian Knoth's avatar
      ALSA: hdspm - Fix coding style in CTL_ELEM macros · f27a64f9
      Adrian Knoth authored
      
      
      checkpatch.pl discourages the use of spaces at the beginning of lines.
      Some of the CTL_ELEM defines were not properly indented.
      
      This patch replaces the leading spaces by tabs. No functionality is
      changed, the commit is purely cosmetic.
      
      Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      f27a64f9
    • Adrian Knoth's avatar
    • Adrian Knoth's avatar
      ALSA: hdspm - Fix sync_in detection on AES/AES32 · 9a215f47
      Adrian Knoth authored
      
      
      According to the documentation, AES32 cards use a different bit position
      for reporting the sync_in status.
      
      Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      9a215f47
    • Adrian Knoth's avatar
      ALSA: hdspm - Fix sync_in reporting on RME MADI cards · 2e0452f5
      Adrian Knoth authored
      
      
      In contrast to AES32, MADI uses the first status register to report the
      sync_in status.
      
      Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      2e0452f5
    • Adrian Knoth's avatar
      ALSA: hdspm - Also report autosync_sample_rate on MADI and MADIface · b8812c55
      Adrian Knoth authored
      MADI and MADIface used to report the autosync_sample_rate. This
      functionality was lost in commit
      0dca1793
      
      , this commit now adds it back.
      
      Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      b8812c55
    • Adrian Knoth's avatar
      ALSA: hdspm - Fix reported autosync_sample_rate · d681deaa
      Adrian Knoth authored
      
      
      Missing breaks lead to a fall-through, thus causing the wrong
      autosync_sample_rate to be reported.
      
      Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      d681deaa
    • Adrian Knoth's avatar
      ALSA: hdspm - Fix sync check reporting on all RME HDSPM cards · fba30fd3
      Adrian Knoth authored
      
      
      Due to missing breaks and the resulting fall-through, card subtype
      selection was effectively missing, thus causing the wrong sync check
      functions to be called.
      
      Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      fba30fd3
    • Adrian Knoth's avatar
      ALSA: hdspm - Report external rate in slave mode on PCI MADI · 21a164df
      Adrian Knoth authored
      As a follow-up to a97bda7d
      
      , report the
      external sample rate as system_sample_rate when in slave mode.
      
      For PCIe MADI cards, the DDS value automatically contains the external
      sample rate, but the PCI version needs this manual workaround.
      
      Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      21a164df
    • Adrian Knoth's avatar
      ALSA: hdspm - Allow DDS/Varispeed to be set from userspace · 41285a98
      Adrian Knoth authored
      
      
      The DDS value is the actual physical sample rate. We set it indirectly
      when selecting 44100, 48000 and so on via snd_hdspm_hw_params or
      hdspm_set_clock_source.
      
      This commit now allows the DDS value to be altered at runtime, thus
      speeding up or slowing down the physical sample rate. This is required
      for MADI's varispeed that allows for ±12.5% speed adjustment from the
      "selected" rate (32kHz, 44100kHz, 48kHz and so on).
      
      Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      41285a98
    • Kees Cook's avatar
      use clamp_t in UNAME26 fix · 31fd84b9
      Kees Cook authored
      
      
      The min/max call needed to have explicit types on some architectures
      (e.g. mn10300). Use clamp_t instead to avoid the warning:
      
        kernel/sys.c: In function 'override_release':
        kernel/sys.c:1287:10: warning: comparison of distinct pointer types lacks a cast [enabled by default]
      
      Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      31fd84b9
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8c1bee68
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Assorted small fixes"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf python: Properly link with libtraceevent
        perf hists browser: Add back callchain folding symbol
        perf tools: Fix build on sparc.
        perf python: Link with libtraceevent
        perf python: Initialize 'page_size' variable
        tools lib traceevent: Fix missed freeing of subargs in free_arg() in filter
        lib tools traceevent: Add back pevent assignment in __pevent_parse_format()
        perf hists browser: Fix off-by-two bug on the first column
        perf tools: Remove warnings on JIT samples for srcline sort key
        perf tools: Fix segfault when using srcline sort key
        perf: Require exclude_guest to use PEBS - kernel side enforcement
        perf tool: Precise mode requires exclude_guest
      8c1bee68
    • Arnaldo Carvalho de Melo's avatar
      perf python: Properly link with libtraceevent · 45bff41a
      Arnaldo Carvalho de Melo authored
      
      
      Namhyung Kim reported that the build fails with:
      
        GEN python/perf.so
        gcc: error: python_ext_build/tmp//../../libtraceevent.a: No such file or directory
        error: command 'gcc' failed with exit status 1
        cp: cannot stat `python_ext_build/lib/perf.so': No such file or directory
        make: *** [python/perf.so] Error 1
      
      We need to propagate the TE_PATH variable to the setup.py file.
      
      Reported-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Link: http://lkml.kernel.org/n/tip-8umiPbm4sxpknKivbjgykhut@git.kernel.org
      [ Fixed superfluous variable build error. ]
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      45bff41a
    • Ingo Molnar's avatar
      Merge tag 'perf-urgent-for-mingo' of... · a448a031
      Ingo Molnar authored
      
      Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
      
      Pull perf/urgent fixes from Arnaldo Carvalho de Melo:
      
      * The python binding needs to link with libtraceevent and to initialize
        the 'page_size' variable so that mmaping works again.
      
      * The callchain folding character that appears on the TUI just before
        the overhead had disappeared due to recent changes, add it back.
      
      * Intel PEBS in VT-x context uses the DS address as a guest linear address,
        even though its programmed by the host as a host linear address. This either
        results in guest memory corruption and or the hardware faulting and 'crashing'
        the virtual machine.  Therefore we have to disable PEBS on VT-x enter and
        re-enable on VT-x exit, enforcing a strict exclude_guest.
      
        Kernel side enforcement fix by Peter Zijlstra, tooling side fix by David Ahern.
      
      * Fix build on sparc due to UAPI, fix from David Miller.
      
      * Fixes for the srclike sort key for unresolved symbols and when processing
        samples in JITted code, where we don't have an ELF file, just an special
        symbol table, fixes from Namhyung Kim.
      
      * Fix some leaks in libtraceevent, from Steven Rostedt.
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      a448a031
    • Linus Torvalds's avatar
      Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 37820108
      Linus Torvalds authored
      Pull ARM soc fixes from Olof Johansson:
       "A set of fixes and some minor cleanups for -rc2:
      
         - A series from Arnd that fixes warnings in drivers and other code
           included by ARM defconfigs.  Most have been acked by corresponding
           maintainers (and seem quite hard to argue not picking up anyway in
           the few exception cases).
         - A few misc patches from the list for integrator/vt8500/i.MX
         - A batch of fixes to OMAP platforms, fixing:
           - boot problems on beaglebone,
           - regression fixes for local timers
           - clockdomain locking fixes
           - a few boot/sparse warnings
         - For Tegra:
           - Clock rate calculation overflow fix
           - Revert a change that removed timer clocks and a fix for symbol
             name clashes
         - For Renesas:
           - IO accessor / annotation cleanups to remove warnings
         - For Kirkwood/Dove/mvebu:
           - Fixes for device trees for Dove (some minor cleanups, some fixes)
           - Fixes for the mvebu gpio driver
           - Fix build problem for Feroceon due to missing ifdefs
           - Fix lsxl DTS files"
      
      * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (31 commits)
        ARM: kirkwood: fix buttons on lsxl boards
        ARM: kirkwood: fix LEDs names for lsxl boards
        ARM: Kirkwood: fix disabling CACHE_FEROCEON_L2
        gpio: mvebu: Add missing breaks in mvebu_gpio_irq_set_type
        ARM: dove: Add crypto engine to DT
        ARM: dove: Remove watchdog from DT
        ARM: dove: Restructure SoC device tree descriptor
        ARM: dove: Fix clock names of sata and gbe
        ARM: dove: Fix tauros2 device tree init
        ARM: dove: Add pcie clock support
        ARM: OMAP2+: Allow kernel to boot even if GPMC fails to reserve memory
        ARM: OMAP: clockdomain: Fix locking on _clkdm_clk_hwmod_enable / disable
        ARM: s3c: mark s3c2440_clk_add as __init_refok
        spi/s3c64xx: use correct dma_transfer_direction type
        ARM: OMAP4: devices: fixup OMAP4 DMIC platform device error message
        ARM: OMAP2+: clock data: Add dev-id for the omap-gpmc dummy fck
        ARM: OMAP: resolve sparse warning concerning debug_card_init()
        ARM: OMAP4: Fix twd_local_timer_register regression
        ARM: tegra: add tegra_timer clock
        ARM: tegra: rename tegra system timer
        ...
      37820108
    • David Howells's avatar
      MODSIGN: Move the magic string to the end of a module and eliminate the search · caabe240
      David Howells authored
      
      
      Emit the magic string that indicates a module has a signature after the
      signature data instead of before it.  This allows module_sig_check() to
      be made simpler and faster by the elimination of the search for the
      magic string.  Instead we just need to do a single memcmp().
      
      This works because at the end of the signature data there is the
      fixed-length signature information block.  This block then falls
      immediately prior to the magic number.
      
      From the contents of the information block, it is trivial to calculate
      the size of the signature data and thus the size of the actual module
      data.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      caabe240
    • Olof Johansson's avatar
      Merge tag 'kirkwood_fixes_for_v3.7' of git://git.infradead.org/users/jcooper/linux into fixes · 70f3900e
      Olof Johansson authored
      From Jason Cooper:
       - improve #ifdef logic to prevent linker errors with CACHE_FEROCEON_L2
       - lsxl board dts fixes
      
      * tag 'kirkwood_fixes_for_v3.7' of git://git.infradead.org/users/jcooper/linux:
        ARM: kirkwood: fix buttons on lsxl boards
        ARM: kirkwood: fix LEDs names for lsxl boards
        ARM: Kirkwood: fix disabling CACHE_FEROCEON_L2
      70f3900e
    • David Howells's avatar
      MODSIGN: Cleanup .gitignore · b6bb324d
      David Howells authored
      
      
      The module build process no longer creates intermediate files for module
      signing, so remove them from .gitignore.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b6bb324d
    • David Howells's avatar
      MODSIGN: perlify sign-file and merge in x509keyid · b37d1bfb
      David Howells authored
      
      
      Turn sign-file into perl and merge in x509keyid.  The latter doesn't
      need to be a separate script as it doesn't actually need to work out the
      SHA1 sum of the X.509 certificate itself, since it can get that from the
      X.509 certificate.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b37d1bfb
    • Olof Johansson's avatar
      Merge branch 'testing/driver-warnings' of... · 068a565a
      Olof Johansson authored
      Merge branch 'testing/driver-warnings' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc into fixes
      
      A collection of warning fixes on non-ARM code from Arnd Bergmann:
      
      * 'testing/driver-warnings' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        ARM: s3c: mark s3c2440_clk_add as __init_refok
        spi/s3c64xx: use correct dma_transfer_direction type
        pcmcia: sharpsl: don't discard sharpsl_pcmcia_ops
        USB: EHCI: mark ehci_orion_conf_mbus_windows __devinit
        mm/slob: use min_t() to compare ARCH_SLAB_MINALIGN
        SCSI: ARM: make fas216_dumpinfo function conditional
        SCSI: ARM: ncr5380/oak uses no interrupts
      068a565a
    • KAMEZAWA Hiroyuki's avatar
      hold task->mempolicy while numa_maps scans. · 9e781440
      KAMEZAWA Hiroyuki authored
      
      
        /proc/<pid>/numa_maps scans vma and show mempolicy under
        mmap_sem. It sometimes accesses task->mempolicy which can
        be freed without mmap_sem and numa_maps can show some
        garbage while scanning.
      
      This patch tries to take reference count of task->mempolicy at reading
      numa_maps before calling get_vma_policy(). By this, task->mempolicy
      will not be freed until numa_maps reaches its end.
      
      V2->v3
        -  updated comments to be more verbose.
        -  removed task_lock() in numa_maps code.
      V1->V2
        -  access task->mempolicy only once and remember it.  Becase kernel/exit.c
           can overwrite it.
      
      Signed-off-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Acked-by: default avatarDavid Rientjes <rientjes@google.com>
      Acked-by: default avatarKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9e781440
    • Linus Torvalds's avatar
      Merge branch 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 3b641bf4
      Linus Torvalds authored
      Pull miscellaneous x86 fixes from Peter Anvin:
       "The biggest ones are fixing suspend/resume breakage on 32 bits, and an
        interrim fix for mapping over holes that allows AMD kit with more than
        1 TB.
      
        A final solution for the latter is in the works, but involves some
        fairly invasive changes that will probably mean it will only be
        appropriate for 3.8."
      
      * 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, MCE: Remove bios_cmci_threshold sysfs attribute
        x86, amd, mce: Avoid NULL pointer reference on CPU northbridge lookup
        x86: Exclude E820_RESERVED regions and memory holes above 4 GB from direct mapping.
        x86/cache_info: Use ARRAY_SIZE() in amd_l3_attrs()
        x86/reboot: Remove quirk entry for SBC FITPC
        x86, suspend: Correct the restore of CR4, EFER; skip computing EFLAGS.ID
      3b641bf4
    • Linus Torvalds's avatar
      Merge branch 'akpm' (Fixes from Andrew) · 4a1f2b0f
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "Seven fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (7 patches)
        lib/dma-debug.c: fix __hash_bucket_find()
        mm: compaction: correct the nr_strict va isolated check for CMA
        firmware/memmap: avoid type conflicts with the generic memmap_init()
        pidns: remove recursion from free_pid_ns()
        drivers/video/backlight/lm3639_bl.c: return proper error in lm3639_bled_mode_store() error paths
        kernel/sys.c: fix stack memory content leak via UNAME26
        linux/coredump.h needs asm/siginfo.h
      4a1f2b0f
    • Ming Lei's avatar
      lib/dma-debug.c: fix __hash_bucket_find() · fe73fbe1
      Ming Lei authored
      
      
      If there is only one match, the unique matched entry should be returned.
      
      Without the fix, the upcoming dma debug interfaces ("dma-debug: new
      interfaces to debug dma mapping errors") can't work reliably because
      only device and dma_addr are passed to dma_mapping_error().
      
      Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
      Reported-by: default avatarWu Fengguang <fengguang.wu@intel.com>
      Cc: Joerg Roedel <joerg.roedel@amd.com>
      Tested-by: default avatarShuah Khan <shuah.khan@hp.com>
      Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Jakub Kicinski <kubakici@wp.pl>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fe73fbe1