This is a note to let you know that I've just added the patch titled

    ALSA: hda - Fix NULL-derefence with a single mic in STAC auto-mic detection

to the 2.6.37-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     
alsa-hda-fix-null-derefence-with-a-single-mic-in-stac-auto-mic-detection.patch
and it can be found in the queue-2.6.37 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 80c678526d7da73bde4d46a4622449c2b3c88409 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Thu, 13 Jan 2011 08:08:08 +0100
Subject: ALSA: hda - Fix NULL-derefence with a single mic in STAC auto-mic 
detection

From: Takashi Iwai <[email protected]>

commit 80c678526d7da73bde4d46a4622449c2b3c88409 upstream.

When only one mic is available and it's an analog mic, the current
IDT/STAC parser may give an Oops.

Reference: bko#25692
        https://bugzilla.kernel.org/show_bug.cgi?id=25692

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 sound/pci/hda/patch_sigmatel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -3591,7 +3591,7 @@ static int stac_check_auto_mic(struct hd
                if (check_mic_pin(codec, spec->dmic_nids[i],
                    &fixed, &ext, &dock))
                        return 0;
-       if (!fixed && !ext && !dock)
+       if (!fixed || (!ext && !dock))
                return 0; /* no input to switch */
        if (!(get_wcaps(codec, ext) & AC_WCAP_UNSOL_CAP))
                return 0; /* no unsol support */


Patches currently in stable-queue which might be from [email protected] are

queue-2.6.37/alsa-snd-usb-us122l-fix-midi-output.patch
queue-2.6.37/alsa-hda-fix-null-derefence-with-a-single-mic-in-stac-auto-mic-detection.patch
queue-2.6.37/alsa-hda-add-missing-nid-0x19-fixup-for-sony-vaio.patch
queue-2.6.37/alsa-hda-disable-4-6-channels-on-some-nvidia-gpus.patch
queue-2.6.37/alsa-hda-don-t-refer-eld-when-unplugged.patch
queue-2.6.37/alsa-hda-add-static_hdmi_pcm-option-to-hdmi-codec-parser.patch
queue-2.6.37/alsa-snd-usb-us122l-fix-missing-null-checks.patch
queue-2.6.37/alsa-hda-use-vostro-model-quirk-for-dell-vostro-1014.patch
queue-2.6.37/alsa-hda-fix-dmesg-output-of-hdmi-supported-bits.patch
queue-2.6.37/alsa-hda-fix-multi-headphone-handling-for-realtek-codecs.patch
queue-2.6.37/alsa-au88x0-limit-number-of-channels-to-fix-oops-via-oss-emu.patch
queue-2.6.37/alsa-hda-create-mixers-on-alc887.patch
queue-2.6.37/alsa-hda-fix-memory-leaks-in-conexant-jack-arrays.patch
queue-2.6.37/alsa-fix-invalid-hardware.h-include-in-ac97c-for-avr32-architecture.patch

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to