ALSA: hda - check NULL pointer when creating SPDIF controls
authorMengdong Lin <mengdong.lin@intel.com>
Thu, 7 Mar 2013 19:10:25 +0000 (14:10 -0500)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Mar 2013 08:12:14 +0000 (09:12 +0100)
commit25336e8ae2d2fa64c9c4cc2c9c28f641134c9fa9
tree3a3d8caab99e648f8875f5ec2becf58226d3fd29
parent9fedcc44f10d1e6820914f93a96d51bc7e653d98
ALSA: hda - check NULL pointer when creating SPDIF controls

If the SPDIF control array cannot be reallocated, the function
will return to avoid dereferencing a NULL pointer.

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