Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix fencepost.
details: https://anonhg.NetBSD.org/src/rev/ac2fd01cf0b6
branches: trunk
changeset: 329843:ac2fd01cf0b6
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jun 11 19:35:46 2014 +0000
description:
Fix fencepost.
diffstat:
sys/dev/pci/agp_i810.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fcf97ff484dd -r ac2fd01cf0b6 sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c Wed Jun 11 17:15:18 2014 +0000
+++ b/sys/dev/pci/agp_i810.c Wed Jun 11 19:35:46 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: agp_i810.c,v 1.94 2014/06/11 17:15:18 riastradh Exp $ */
+/* $NetBSD: agp_i810.c,v 1.95 2014/06/11 19:35:46 riastradh Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.94 2014/06/11 17:15:18 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.95 2014/06/11 19:35:46 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1323,7 +1323,7 @@
do {
KASSERT(0 < len);
KASSERT((len & (AGP_PAGE_SIZE - 1)) == 0);
- KASSERT((offset + i) < (mem->am_size - len));
+ KASSERT((offset + i) <= (mem->am_size - len));
error = agp_i810_bind_page(sc, offset + i, addr);
if (error)
goto fail3;
Home |
Main Index |
Thread Index |
Old Index