[ALSA] Fix NULL dereference with null modelname
authorTakashi Iwai <tiwai@suse.de>
Wed, 7 Mar 2007 14:55:59 +0000 (15:55 +0100)
committerJaroslav Kysela <perex@suse.cz>
Fri, 11 May 2007 14:55:44 +0000 (16:55 +0200)
commitd5ad630b6dd00ea41e0c58b45c0912f72757b5cd
treef33496e199036feb82bbe23d7407e417ac8e1063
parent6d7b1d7d09e00034325b09a3a7ac7b0ea5e29506
[ALSA] Fix NULL dereference with null modelname

Fix the NULL dereference of modelname option.  The check is moved to
find_codec_preset() now, too.

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