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)
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>

No differences found