ALSA: ice1724 - Check for ac97 to avoid kernel oops
commit35cdd5ea88762e22c9d21c5c826cbd7ef1edd7db
authorPavel Hofman <pavel.hofman@ivitera.com>
Thu, 5 Jan 2012 22:05:18 +0000 (5 23:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 01:24:34 +0000 (25 17:24 -0800)
treea3a7dfbde3f7b9e74d83410731c3fbe3c89a2737
parent730580b66c412cd8fbe9c7077ce42c55a85e6281
ALSA: ice1724 - Check for ac97 to avoid kernel oops

commit e7848163aa2a649d9065f230fadff80dc3519775 upstream.

Cards with identical PCI ids but no AC97 config in EEPROM do not have
the ac97 field initialized. We must check for this case to avoid kernel oops.

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/ice1712/amp.c