Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern make condition for ENOMEM consistent with allocatio...
details: https://anonhg.NetBSD.org/src/rev/e5ed0e9f5ef4
branches: trunk
changeset: 328410:e5ed0e9f5ef4
user: para <para%NetBSD.org@localhost>
date: Wed Apr 02 18:09:10 2014 +0000
description:
make condition for ENOMEM consistent with allocation requirement
diffstat:
sys/kern/subr_vmem.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2d3c5f7aa886 -r e5ed0e9f5ef4 sys/kern/subr_vmem.c
--- a/sys/kern/subr_vmem.c Wed Apr 02 17:36:05 2014 +0000
+++ b/sys/kern/subr_vmem.c Wed Apr 02 18:09:10 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_vmem.c,v 1.91 2014/04/02 16:14:50 para Exp $ */
+/* $NetBSD: subr_vmem.c,v 1.92 2014/04/02 18:09:10 para Exp $ */
/*-
* Copyright (c)2006,2007,2008,2009 YAMAMOTO Takashi,
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.91 2014/04/02 16:14:50 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.92 2014/04/02 18:09:10 para Exp $");
#if defined(_KERNEL)
#include "opt_ddb.h"
@@ -262,7 +262,7 @@
vm->vm_nfreetags++;
}
- if (vm->vm_nfreetags == 0) {
+ if (vm->vm_nfreetags <= BT_MINRESERVE) {
VMEM_UNLOCK(vm);
return ENOMEM;
}
Home |
Main Index |
Thread Index |
Old Index