07 Jan, 2009

1 commit

  • Several subsystem open handlers dereference the fops_get() return value
    without checking it for nullness. This opens a race condition between the
    open handler and module unloading.

    A module can be marked as being unloaded (MODULE_STATE_GOING) before its
    exit function is called and gets the chance to unregister the driver.
    During that window open handlers can still be called, and fops_get() will
    fail in try_module_get() and return a NULL pointer.

    This change checks the fops_get() return value and returns -ENODEV if NULL.

    Reported-by: Alan Jenkins
    Signed-off-by: Laurent Pinchart
    Acked-by: Takashi Iwai
    Cc: Al Viro
    Cc: Dave Airlie
    Acked-by: Mauro Carvalho Chehab
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Laurent Pinchart
     

31 Dec, 2008

1 commit

  • …l/git/tip/linux-2.6-tip

    * 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    hrtimers: fix warning in kernel/hrtimer.c
    x86: make sure we really have an hpet mapping before using it
    x86: enable HPET on Fujitsu u9200
    linux/timex.h: cleanup for userspace
    posix-timers: simplify de_thread()->exit_itimers() path
    posix-timers: check ->it_signal instead of ->it_pid to validate the timer
    posix-timers: use "struct pid*" instead of "struct task_struct*"
    nohz: suppress needless timer reprogramming
    clocksource, acpi_pm.c: put acpi_pm_read_slow() under CONFIG_PCI
    nohz: no softirq pending warnings for offline cpus
    hrtimer: removing all ur callback modes, fix
    hrtimer: removing all ur callback modes, fix hotplug
    hrtimer: removing all ur callback modes
    x86: correct link to HPET timer specification
    rtc-cmos: export second NVRAM bank

    Fixed up conflicts in sound/drivers/pcsp/pcsp.c and sound/core/hrtimer.c
    manually.

    Linus Torvalds
     

25 Dec, 2008

5 commits


19 Dec, 2008

1 commit


18 Dec, 2008

1 commit


10 Dec, 2008

1 commit

  • Some systems support both mechanical and electrical jack detection,
    allowing them to report that a jack is physically present but does
    not have any functioning connections. Add a new jack type for these,
    allowing user space to report faulty connections.

    Thanks to Guillem Jover for the suggestion.

    Signed-off-by: Mark Brown
    Signed-off-by: Takashi Iwai

    Mark Brown
     

08 Dec, 2008

2 commits


26 Nov, 2008

1 commit


19 Nov, 2008

1 commit

  • Do not ignore the return of 'device_create_file' in
    'snd_card_register' and thereby fixing the following warnings:

    sound/core/init.c: In function 'snd_card_register':
    sound/core/init.c:640: warning: ignoring return value of
    'device_create_file', declared with attribute warn_unused_result
    sound/core/init.c:641: warning: ignoring return value of
    'device_create_file', declared with attribute warn_unused_result

    Signed-off-by: Hannes Eder
    Signed-off-by: Takashi Iwai

    Hannes Eder
     

13 Nov, 2008

1 commit


12 Nov, 2008

1 commit


07 Nov, 2008

1 commit


04 Nov, 2008

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda: make a STAC_DELL_EQ option
    ALSA: emu10k1 - Add more invert_shared_spdif flag to Audigy models
    ALSA: hda - Add a quirk for another Acer Aspire (1025:0090)
    ALSA: remove direct access of dev->bus_id in sound/isa/*
    sound: struct device - replace bus_id with dev_name(), dev_set_name()
    ALSA: Fix PIT lockup on some chipsets when using the PC-Speaker
    ALSA: rawmidi - Add open check in rawmidi callbacks
    ALSA: hda - Add digital-mic for ALC269 auto-probe mode
    ALSA: hda - Disable broken mic auto-muting in Realtek codes

    Linus Torvalds
     

03 Nov, 2008

2 commits


02 Nov, 2008

1 commit

  • As it is, all instances of ->release() for files that have ->fasync()
    need to remember to evict file from fasync lists; forgetting that
    creates a hole and we actually have a bunch that *does* forget.

    So let's keep our lives simple - let __fput() check FASYNC in
    file->f_flags and call ->fasync() there if it's been set. And lose that
    crap in ->release() instances - leaving it there is still valid, but we
    don't have to bother anymore.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     

31 Oct, 2008

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: ASoC: Fix WM9713 ALC Decay Time name
    ALSA: ASoC: Fix some minor errors in mpc5200 psc i2s driver
    ALSA: ASoC: Fix mono controls after conversion to support full int masks
    ALSA: sound/ice1712: indentation & braces disagree - add braces
    ALSA: usb - Add quirk for Edirol UA-25EX advanced modes
    sound: struct device - replace bus_id with dev_name(), dev_set_name()
    ALSA: hda - Add reboot notifier
    ALSA: Warn when control names are truncated
    ALSA: intel8x0 - add Dell Optiplex GX620 (AD1981B) to AC97 clock whitelist
    ALSA: hda - Fix SPDIF mute on IDT/STAC codecs
    ALSA: hda: Add HDA vendor ID for Wolfson Microelectronics
    ALSA: hda - Add another HP model for AD1884A

    Linus Torvalds
     

29 Oct, 2008

3 commits


27 Oct, 2008

3 commits


25 Oct, 2008

1 commit


21 Oct, 2008

1 commit


20 Oct, 2008

1 commit


18 Oct, 2008

2 commits


17 Oct, 2008

1 commit


16 Oct, 2008

3 commits


12 Oct, 2008

1 commit


10 Oct, 2008

1 commit


09 Sep, 2008

1 commit