]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ALSA: hda - check NULL pointer when creating SPDIF PCM switch
authorMengdong Lin <mengdong.lin@intel.com>
Thu, 7 Mar 2013 19:11:05 +0000 (14:11 -0500)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Mar 2013 08:14:03 +0000 (09:14 +0100)
commit4c7a548a70a44269266858f65c3b5fc9c3ace057
tree826810f4e37ffe5a315345842a399ad1135b36d6
parent25336e8ae2d2fa64c9c4cc2c9c28f641134c9fa9
ALSA: hda - check NULL pointer when creating SPDIF PCM switch

If the new control cannot be created, this function will return to avoid
snd_hda_ctl_add dereferencing a NULL control pointer.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c