Source-Changes-HG archive

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

[src/netbsd-6-1]: src/sys/miscfs/procfs Pull up following revision(s) (reques...



details:   https://anonhg.NetBSD.org/src/rev/6b61874dbb10
branches:  netbsd-6-1
changeset: 775817:6b61874dbb10
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Jul 29 08:23:16 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 9daed3a103f7 -r 6b61874dbb10 sys/miscfs/procfs/procfs_map.c
--- a/sys/miscfs/procfs/procfs_map.c    Mon Jul 29 07:07:23 2013 +0000
+++ b/sys/miscfs/procfs/procfs_map.c    Mon Jul 29 08:23:16 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.14.1 2013/07/29 08:23:16 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.14.1 2013/07/29 08:23:16 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