Update of /cvsroot/alsa/alsa-kernel/pci/ac97
In directory sc8-pr-cvs1:/tmp/cvs-serv9205

Modified Files:
        ac97_pcm.c 
Log Message:
- fixed oops.



Index: ac97_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_pcm.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ac97_pcm.c  18 Nov 2003 11:38:40 -0000      1.1
+++ ac97_pcm.c  18 Nov 2003 13:52:59 -0000      1.2
@@ -392,8 +392,12 @@
        rpcms = snd_kcalloc(sizeof(struct ac97_pcm), GFP_KERNEL);
        if (rpcms == NULL)
                return -ENOMEM;
+       memset(avail_slots, 0, sizeof(avail_slots));
+       memset(all_slots, 0, sizeof(all_slots));
        for (i = 0; i < 4; i++) {
                codec = bus->codec[i];
+               if (! codec)
+                       continue;
                avail_slots[0][i] = get_pslots(codec, &rate_table[0][i]);
                avail_slots[1][i] = get_cslots(codec);
                if (!(codec->scaps & AC97_SCAP_INDEP_SDIN)) {



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to