]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaaa63c85517859fa3b3b78125a02c184b4dbd035
tree3a3d8caab99e648f8875f5ec2becf58226d3fd29
parent0cae63408a3db3cf14b879b1aaa55cc803251192
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