Module Name: src Committed By: maxv Date: Sun Nov 25 14:11:24 UTC 2018
Modified Files: src/sys/dev/nvmm: nvmm.c Log Message: Appease the check: allow NVMM_MAX_RAM bytes of memory, and not just NVMM_MAX_RAM-1. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/nvmm/nvmm.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/dev/nvmm/nvmm.c diff -u src/sys/dev/nvmm/nvmm.c:1.2 src/sys/dev/nvmm/nvmm.c:1.3 --- src/sys/dev/nvmm/nvmm.c:1.2 Sun Nov 18 07:42:24 2018 +++ src/sys/dev/nvmm/nvmm.c Sun Nov 25 14:11:24 2018 @@ -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 @@ nvmm_gpa_map(struct nvmm_ioc_gpa_map *ar error = EINVAL; goto out; } - if (args->gpa + args->size >= mach->gpa_end) { + if (args->gpa + args->size > mach->gpa_end) { error = EINVAL; goto out; }