]> git.baikalelectronics.ru Git - kernel.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)
commit2a622f199b1156531aabe3eba2e99595cca3ffc1
tree826810f4e37ffe5a315345842a399ad1135b36d6
parent73de5180535c0f80bc3a1864ad71735c60b29787
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