Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/f1ee733b3360
branches:  netbsd-8
changeset: 434151:f1ee733b3360
user:      snj <snj%NetBSD.org@localhost>
date:      Tue Jul 25 02:08:31 2017 +0000

description:
Pull up following revision(s) (requested by maya in ticket #150):
        sys/dev/ic/rt2860.c: revision 1.27
Use kmem_free for kmem_alloc'd memory
Fixes diagnostic crash on detach, tested by Riccardo Mottola

diffstat:

 sys/dev/ic/rt2860.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 56e8b2c79d50 -r f1ee733b3360 sys/dev/ic/rt2860.c
--- a/sys/dev/ic/rt2860.c       Tue Jul 25 02:07:11 2017 +0000
+++ b/sys/dev/ic/rt2860.c       Tue Jul 25 02:08:31 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rt2860.c,v 1.26 2017/05/23 02:19:14 ozaki-r Exp $      */
+/*     $NetBSD: rt2860.c,v 1.26.2.1 2017/07/25 02:08:31 snj Exp $      */
 /*     $OpenBSD: rt2860.c,v 1.90 2016/04/13 10:49:26 mpi Exp $ */
 /*     $FreeBSD: head/sys/dev/ral/rt2860.c 306591 2016-10-02 20:35:55Z avos $ */
 
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rt2860.c,v 1.26 2017/05/23 02:19:14 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rt2860.c,v 1.26.2.1 2017/07/25 02:08:31 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -466,7 +466,7 @@
        }
 
        if (sc->ucode != NULL)
-               free(sc->ucode, M_DEVBUF);
+               firmware_free(sc->ucode, sc->ucsize);
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index