Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/x68k PR/52135: David Binderman: Fix loop bound...
details: https://anonhg.NetBSD.org/src/rev/dedb9e61be1b
branches: trunk
changeset: 352483:dedb9e61be1b
user: christos <christos%NetBSD.org@localhost>
date: Mon Apr 03 17:37:29 2017 +0000
description:
PR/52135: David Binderman: Fix loop bounds checking.
diffstat:
sys/arch/x68k/x68k/machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 23cce93d7d55 -r dedb9e61be1b sys/arch/x68k/x68k/machdep.c
--- a/sys/arch/x68k/x68k/machdep.c Mon Apr 03 17:36:17 2017 +0000
+++ b/sys/arch/x68k/x68k/machdep.c Mon Apr 03 17:37:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.195 2016/12/23 07:15:28 cherry Exp $ */
+/* $NetBSD: machdep.c,v 1.196 2017/04/03 17:37:29 christos Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.195 2016/12/23 07:15:28 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.196 2017/04/03 17:37:29 christos Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -693,7 +693,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);
/*
* Check to see if we will fit. Note we always skip the
Home |
Main Index |
Thread Index |
Old Index