Update of /cvsroot/alsa/alsa-kernel/isa/gus
In directory sc8-pr-cvs1:/tmp/cvs-serv16068/isa/gus
Modified Files:
gusclassic.c gusextreme.c gusmax.c
Log Message:
fixed the wrong order of object destruction:
a released object is referred after the *_free() call.
Index: gusclassic.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/gus/gusclassic.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- gusclassic.c 21 Oct 2002 18:28:22 -0000 1.10
+++ gusclassic.c 14 Aug 2003 11:05:38 -0000 1.11
@@ -189,8 +189,8 @@
return err;
}
if (gus->max_flag || gus->ess_flag) {
- snd_card_free(card);
snd_printdd("GUS Classic or ACE soundcard was not detected at
0x%lx\n", gus->gf1.port);
+ snd_card_free(card);
return -ENODEV;
}
if ((err = snd_gf1_new_mixer(gus)) < 0) {
Index: gusextreme.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/gus/gusextreme.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- gusextreme.c 21 Oct 2002 18:28:22 -0000 1.10
+++ gusextreme.c 14 Aug 2003 11:05:38 -0000 1.11
@@ -284,8 +284,8 @@
return err;
}
if (!gus->ess_flag) {
- snd_card_free(card);
snd_printdd("GUS Extreme soundcard was not detected at 0x%lx\n",
gus->gf1.port);
+ snd_card_free(card);
return -ENODEV;
}
if ((err = snd_es1688_pcm(es1688, 0, NULL)) < 0) {
Index: gusmax.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/gus/gusmax.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- gusmax.c 23 Apr 2003 10:01:38 -0000 1.11
+++ gusmax.c 14 Aug 2003 11:05:38 -0000 1.12
@@ -293,8 +293,8 @@
return err;
}
if (!gus->max_flag) {
- snd_card_free(card);
printk(KERN_ERR "GUS MAX soundcard was not detected at 0x%lx\n",
gus->gf1.port);
+ snd_card_free(card);
return -ENODEV;
}
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog