lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAC9WiBivf2HCVAe-d9ah+mpA50pwjH8ga6w5O4rAq9U2CTa8HA@mail.gmail.com>
Date:	Wed, 14 Sep 2011 09:03:10 +0200
From:	Francis Moreau <francis.moro@...il.com>
To:	Takashi Iwai <tiwai@...e.de>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: 3.1-rc5 is the worst

Hello,

On Tue, Sep 13, 2011 at 10:39 AM, Takashi Iwai <tiwai@...e.de> wrote:
>
> The patch below should fix the problem.  Give it a try.
>

Yes it does, thanks !

>
> ---
> From: Takashi Iwai <tiwai@...e.de>
> Subject: [PATCH] ALSA: hda - Terminate the recursive connection search properly
>
> The recursive search of widget connections in snd_hda_get_conn_index()
> must be terminated at the pin and the audio-out widgets.  Otherwise
> you'll get "too deep connection" warnings unnecessarily.
>
> Signed-off-by: Takashi Iwai <tiwai@...e.de>
> ---
>  sound/pci/hda/hda_codec.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
> index 3e7850c..f3aefef 100644
> --- a/sound/pci/hda/hda_codec.c
> +++ b/sound/pci/hda/hda_codec.c
> @@ -579,9 +579,13 @@ int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux,
>                return -1;
>        }
>        recursive++;
> -       for (i = 0; i < nums; i++)
> +       for (i = 0; i < nums; i++) {
> +               unsigned int type = get_wcaps_type(get_wcaps(codec, conn[i]));
> +               if (type == AC_WID_PIN || type == AC_WID_AUD_OUT)
> +                       continue;
>                if (snd_hda_get_conn_index(codec, conn[i], nid, recursive) >= 0)
>                        return i;
> +       }
>        return -1;
>  }
>  EXPORT_SYMBOL_HDA(snd_hda_get_conn_index);
> --
> 1.7.6.1
>
>



-- 
Francis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ