Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/sys/dev Pull up following revision(s) (requested by msait...



details:   https://anonhg.NetBSD.org/src/rev/be3205733f52
branches:  netbsd-6
changeset: 775588:be3205733f52
user:      riz <riz%NetBSD.org@localhost>
date:      Mon Dec 17 00:23:01 2012 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #752):
        sys/dev/lockstat.c: revision 1.16
Fix off by one.

diffstat:

 sys/dev/lockstat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d5151053b498 -r be3205733f52 sys/dev/lockstat.c
--- a/sys/dev/lockstat.c        Sun Dec 16 19:42:28 2012 +0000
+++ b/sys/dev/lockstat.c        Mon Dec 17 00:23:01 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lockstat.c,v 1.15 2008/04/28 20:23:46 martin Exp $     */
+/*     $NetBSD: lockstat.c,v 1.15.40.1 2012/12/17 00:23:01 riz Exp $   */
 
 /*-
  * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.15 2008/04/28 20:23:46 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.15.40.1 2012/12/17 00:23:01 riz Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -270,7 +270,7 @@
 
        cpuno = 0;
        for (CPU_INFO_FOREACH(cii, ci)) {
-               if (cpuno > sizeof(ld->ld_freq) / sizeof(ld->ld_freq[0])) {
+               if (cpuno >= sizeof(ld->ld_freq) / sizeof(ld->ld_freq[0])) {
                        log(LOG_WARNING, "lockstat: too many CPUs\n");
                        break;
                }



Home | Main Index | Thread Index | Old Index