]> www.infradead.org Git - users/dwmw2/linux.git/commit
ALSA: hda - Fix potential endless loop at applying quirks
authorTakashi Iwai <tiwai@suse.de>
Thu, 29 Aug 2019 07:52:02 +0000 (09:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:23:17 +0000 (08:23 +0200)
commit1a413713ee1641c08f36f4399a9f033c205fde31
tree6b415e5799afb97cb0800b0c851ce50f0b5d529b
parentd89e8b4684f193a5661968c492e08639c965d23b
ALSA: hda - Fix potential endless loop at applying quirks

commit 333f31436d3db19f4286f8862a00ea1d8d8420a1 upstream.

Since the chained quirks via chained_before flag is applied before the
depth check, it may lead to the endless recursive calls, when the
chain were set up incorrectly.  Fix it by moving the depth check at
the beginning of the loop.

Fixes: 1f57825077dc ("ALSA: hda - Add chained_before flag to the fixup entry")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_auto_parser.c