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/a2e0fb4d00df
branches:  trunk
changeset: 458048:a2e0fb4d00df
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 d6ce495e23b6 -r a2e0fb4d00df 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