ALSA: hda - Fix possible NULL dereference
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Nov 2008 07:43:08 +0000 (08:43 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Nov 2008 07:43:08 +0000 (08:43 +0100)
commitb91f080f517cf9dd52023c11127a0ca33190e31a
tree04d660d1dc3bdbd9b229484a4bee66cc5559ae76
parent4ef0ef1966dae9e9e29762e4e719af3cfd146ca0
ALSA: hda - Fix possible NULL dereference

Add NULL-check of the return value of snd_kctl_new1() before
accessing it.  Also, make a sanity NULL check to snd_BUG_ON()
for debugging only.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c