Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/mac68k PR/52134: David Binderman: Fix loop b...
details: https://anonhg.NetBSD.org/src/rev/23cce93d7d55
branches: trunk
changeset: 352482:23cce93d7d55
user: christos <christos%NetBSD.org@localhost>
date: Mon Apr 03 17:36:17 2017 +0000
description:
PR/52134: David Binderman: Fix loop bounds checking.
diffstat:
sys/arch/mac68k/mac68k/machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8c3f59e15f96 -r 23cce93d7d55 sys/arch/mac68k/mac68k/machdep.c
--- a/sys/arch/mac68k/mac68k/machdep.c Mon Apr 03 17:19:43 2017 +0000
+++ b/sys/arch/mac68k/mac68k/machdep.c Mon Apr 03 17:36:17 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.349 2015/08/30 01:46:03 uebayasi Exp $ */
+/* $NetBSD: machdep.c,v 1.350 2017/04/03 17:36:17 christos Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.349 2015/08/30 01:46:03 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.350 2017/04/03 17:36:17 christos Exp $");
#include "opt_adb.h"
#include "opt_copy_symtab.h"
@@ -646,7 +646,7 @@
chdrsize = cpu_dumpsize();
dumpsize = 0;
- for (i = 0; m->ram_segs[i].size && i < M68K_NPHYS_RAM_SEGS; i++)
+ for (i = 0; i < M68K_NPHYS_RAM_SEGS && m->ram_segs[i].size; i++)
dumpsize += btoc(m->ram_segs[i].size);
/*
Home |
Main Index |
Thread Index |
Old Index