Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbppc/mpc85xx Fix off-by-one.
details: https://anonhg.NetBSD.org/src/rev/2732df3887cd
branches: trunk
changeset: 767351:2732df3887cd
user: matt <matt%NetBSD.org@localhost>
date: Sat Jul 16 21:36:18 2011 +0000
description:
Fix off-by-one.
diffstat:
sys/arch/evbppc/mpc85xx/machdep.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 3e4c5b4307fd -r 2732df3887cd sys/arch/evbppc/mpc85xx/machdep.c
--- a/sys/arch/evbppc/mpc85xx/machdep.c Sat Jul 16 20:25:28 2011 +0000
+++ b/sys/arch/evbppc/mpc85xx/machdep.c Sat Jul 16 21:36:18 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.16 2011/07/01 07:44:33 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.17 2011/07/16 21:36:18 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -488,7 +488,7 @@
cnt--;
}
}
- } else {
+ } else if (cnt == 0) {
panic("%s: no memory found", __func__);
}
Home |
Main Index |
Thread Index |
Old Index