Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nvmm Appease the check: allow NVMM_MAX_RAM bytes of ...
details: https://anonhg.NetBSD.org/src/rev/e473fc37796d
branches: trunk
changeset: 994875:e473fc37796d
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Nov 25 14:11:24 2018 +0000
description:
Appease the check: allow NVMM_MAX_RAM bytes of memory, and not just
NVMM_MAX_RAM-1.
diffstat:
sys/dev/nvmm/nvmm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b09367d49415 -r e473fc37796d sys/dev/nvmm/nvmm.c
--- a/sys/dev/nvmm/nvmm.c Sun Nov 25 14:09:57 2018 +0000
+++ b/sys/dev/nvmm/nvmm.c Sun Nov 25 14:11:24 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvmm.c,v 1.2 2018/11/18 07:42:24 maxv Exp $ */
+/* $NetBSD: nvmm.c,v 1.3 2018/11/25 14:11:24 maxv Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.2 2018/11/18 07:42:24 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvmm.c,v 1.3 2018/11/25 14:11:24 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -533,7 +533,7 @@
error = EINVAL;
goto out;
}
- if (args->gpa + args->size >= mach->gpa_end) {
+ if (args->gpa + args->size > mach->gpa_end) {
error = EINVAL;
goto out;
}
Home |
Main Index |
Thread Index |
Old Index