Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Free kmem_alloc'd memory with kmem_free



details:   https://anonhg.NetBSD.org/src/rev/008c3d8956ac
branches:  trunk
changeset: 1000544:008c3d8956ac
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jul 28 10:24:08 2019 +0000

description:
Free kmem_alloc'd memory with kmem_free

diffstat:

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

diffs (27 lines):

diff -r 010574925940 -r 008c3d8956ac sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Sun Jul 28 10:21:18 2019 +0000
+++ b/sys/dev/rasops/rasops.c   Sun Jul 28 10:24:08 2019 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rasops.c,v 1.92 2019/07/26 11:16:19 rin Exp $ */
+/*      $NetBSD: rasops.c,v 1.93 2019/07/28 10:24:08 martin Exp $      */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.92 2019/07/26 11:16:19 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.93 2019/07/28 10:24:08 martin Exp $");
 
 #include "opt_rasops.h"
 #include "rasops_glue.h"
@@ -1299,7 +1299,7 @@
        *cookie = ncookie;
        return;
 
-fail:  free(f, sizeof(*f));
+fail:  kmem_free(f, sizeof(*f));
        return;
 }
 



Home | Main Index | Thread Index | Old Index