Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/sys/dev/ic Pull up following revision(s) (requested by ma...



details:   https://anonhg.NetBSD.org/src/rev/70b7a000b091
branches:  netbsd-7
changeset: 799460:70b7a000b091
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Jul 05 20:37:01 2015 +0000

description:
Pull up following revision(s) (requested by maxv in ticket #858):
        sys/dev/ic/ac97.c: revision 1.96
fix memory leak, found by Brainy.
XXX: is there anything else that we need to cleanup at this point?

diffstat:

 sys/dev/ic/ac97.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r b67027955211 -r 70b7a000b091 sys/dev/ic/ac97.c
--- a/sys/dev/ic/ac97.c Sun Jul 05 20:34:51 2015 +0000
+++ b/sys/dev/ic/ac97.c Sun Jul 05 20:37:01 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ac97.c,v 1.95 2012/10/27 17:18:18 chs Exp $ */
+/*      $NetBSD: ac97.c,v 1.95.12.1 2015/07/05 20:37:01 snj Exp $ */
 /*     $OpenBSD: ac97.c,v 1.8 2000/07/19 09:01:35 csapuntz Exp $       */
 
 /*
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.95 2012/10/27 17:18:18 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.95.12.1 2015/07/05 20:37:01 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1444,6 +1444,7 @@
 
                if (as->ext_mid == 0 || as->ext_mid == 0xffff) {
                        aprint_normal_dev(sc_dev, "no modem codec found\n");
+                       free(as, M_DEVBUF);
                        return ENXIO;
                }
                as->type = AC97_CODEC_TYPE_MODEM;



Home | Main Index | Thread Index | Old Index