ALSA: hda - Fix NULL dereference with CONFIG_SND_DYNAMIC_MINORS=n
authorTakashi Iwai <tiwai@suse.de>
Thu, 22 Aug 2013 07:55:36 +0000 (09:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Sep 2013 05:09:57 +0000 (22:09 -0700)
commitda958137df4bcd9b2b5ea83db75f66a46c3ef46f
treeddb6962a50348fbca323abd394a21804f7ce6303
parent192caed2bfb7072b7f364dc909b43fd7604b991d
ALSA: hda - Fix NULL dereference with CONFIG_SND_DYNAMIC_MINORS=n

commit 2ca320e294a738c9134a71b5029de05edbfc7aad upstream.

Without the dynamic minor assignment, HDMI codec may have less PCM
instances than the number of pins, which eventually leads to Oops.

Reported-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_hdmi.c