Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/procfs PR/48048: Add a missing vm_map_unlock_read...
details: https://anonhg.NetBSD.org/src/rev/ba6bdb646c00
branches: trunk
changeset: 788683:ba6bdb646c00
user: ryo <ryo%NetBSD.org@localhost>
date: Thu Jul 18 07:59:44 2013 +0000
description:
PR/48048: Add a missing vm_map_unlock_read() and uvmspace_free() to the ENOMEM error case in procfs_domap()d
diffstat:
sys/miscfs/procfs/procfs_map.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 4cef36732740 -r ba6bdb646c00 sys/miscfs/procfs/procfs_map.c
--- a/sys/miscfs/procfs/procfs_map.c Thu Jul 18 06:39:18 2013 +0000
+++ b/sys/miscfs/procfs/procfs_map.c Thu Jul 18 07:59:44 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_map.c,v 1.42 2012/05/06 03:13:11 christos Exp $ */
+/* $NetBSD: procfs_map.c,v 1.43 2013/07/18 07:59:44 ryo Exp $ */
/*
* Copyright (c) 1993
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_map.c,v 1.42 2012/05/06 03:13:11 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_map.c,v 1.43 2013/07/18 07:59:44 ryo Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -208,6 +208,8 @@
bufsize <<= 1;
if (bufsize > MAXBUFFERSIZE) {
error = ENOMEM;
+ vm_map_unlock_read(map);
+ uvmspace_free(vm);
goto out;
}
free(buffer, M_TEMP);
Home |
Main Index |
Thread Index |
Old Index