Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/miscfs/procfs Pull up following revision(s) (requeste...
details: https://anonhg.NetBSD.org/src/rev/60ed40dec721
branches: netbsd-6
changeset: 776396:60ed40dec721
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Jul 29 08:17:55 2013 +0000
description:
Pull up following revision(s) (requested by ryo in ticket #917):
sys/miscfs/procfs/procfs_map.c: revision 1.43
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 74d9dfe2162c -r 60ed40dec721 sys/miscfs/procfs/procfs_map.c
--- a/sys/miscfs/procfs/procfs_map.c Mon Jul 29 08:15:39 2013 +0000
+++ b/sys/miscfs/procfs/procfs_map.c Mon Jul 29 08:17:55 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_map.c,v 1.41 2011/10/16 12:26:16 hannken Exp $ */
+/* $NetBSD: procfs_map.c,v 1.41.8.1 2013/07/29 08:17:55 msaitoh Exp $ */
/*
* Copyright (c) 1993
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_map.c,v 1.41 2011/10/16 12:26:16 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_map.c,v 1.41.8.1 2013/07/29 08:17:55 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -207,6 +207,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