Module Name: src Committed By: msaitoh Date: Mon Jul 29 08:17:55 UTC 2013
Modified Files: src/sys/miscfs/procfs [netbsd-6]: procfs_map.c Log Message: 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 To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.41.8.1 src/sys/miscfs/procfs/procfs_map.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/miscfs/procfs/procfs_map.c diff -u src/sys/miscfs/procfs/procfs_map.c:1.41 src/sys/miscfs/procfs/procfs_map.c:1.41.8.1 --- src/sys/miscfs/procfs/procfs_map.c:1.41 Sun Oct 16 12:26:16 2011 +++ src/sys/miscfs/procfs/procfs_map.c Mon Jul 29 08:17:55 2013 @@ -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 @@ again: bufsize <<= 1; if (bufsize > MAXBUFFERSIZE) { error = ENOMEM; + vm_map_unlock_read(map); + uvmspace_free(vm); goto out; } free(buffer, M_TEMP);