Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/linux Don't leak KVA by forgetting to ...
details: https://anonhg.NetBSD.org/src/rev/b572310ca21c
branches: trunk
changeset: 328186:b572310ca21c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Mar 28 23:22:27 2014 +0000
description:
Don't leak KVA by forgetting to call uvm_km_free...oops!
>From rmind@.
diffstat:
sys/external/bsd/drm2/linux/linux_kmap.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r f59df967539a -r b572310ca21c sys/external/bsd/drm2/linux/linux_kmap.c
--- a/sys/external/bsd/drm2/linux/linux_kmap.c Fri Mar 28 23:19:41 2014 +0000
+++ b/sys/external/bsd/drm2/linux/linux_kmap.c Fri Mar 28 23:22:27 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_kmap.c,v 1.3 2014/03/28 23:19:41 riastradh Exp $ */
+/* $NetBSD: linux_kmap.c,v 1.4 2014/03/28 23:22:27 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_kmap.c,v 1.3 2014/03/28 23:19:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_kmap.c,v 1.4 2014/03/28 23:22:27 riastradh Exp $");
#include <sys/types.h>
#include <sys/kmem.h>
@@ -222,4 +222,6 @@
pmap_kremove(vaddr, PAGE_SIZE);
pmap_update(pmap_kernel());
+
+ uvm_km_free(kernel_map, vaddr, PAGE_SIZE, UVM_KMF_VAONLY);
}
Home |
Main Index |
Thread Index |
Old Index