aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2004-04-24 20:31:45 +0200
committerJaroslav Kysela <perex@suse.cz>2004-04-24 20:31:45 +0200
commit02469e443436e102fccc84129f58f3d3f570e4ae (patch)
tree7e2eef1c7f6ae04da12921b1dced673a4dc6e38d /sound
parent8287de06b152f1655ca25c80b8db2d6fe7740692 (diff)
downloadhistory-02469e443436e102fccc84129f58f3d3f570e4ae.tar.gz
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
AC97 Codec Core ac97->pci might be null
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/ac97/ac97_patch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c
index 5761c156f3e649..0ca48b9534b699 100644
--- a/sound/pci/ac97/ac97_patch.c
+++ b/sound/pci/ac97/ac97_patch.c
@@ -471,7 +471,8 @@ int patch_sigmatel_stac9758(ac97_t * ac97)
int i;
/* Gateway M675 notebook */
- if (ac97->pci->subsystem_vendor == 0x107b &&
+ if (ac97->pci &&
+ ac97->pci->subsystem_vendor == 0x107b &&
ac97->pci->subsystem_device == 0x0601)
pregs = m675_regs;