Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 FIx off by one error for brand id array i...



details:   https://anonhg.NetBSD.org/src/rev/93a57ccba419
branches:  trunk
changeset: 537625:93a57ccba419
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Thu Oct 03 19:39:51 2002 +0000

description:
FIx off by one error for brand id array index.

diffstat:

 sys/arch/i386/i386/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e6cde51c3a7f -r 93a57ccba419 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Thu Oct 03 19:17:01 2002 +0000
+++ b/sys/arch/i386/i386/machdep.c      Thu Oct 03 19:39:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.484 2002/10/01 12:56:55 fvdl Exp $       */
+/*     $NetBSD: machdep.c,v 1.485 2002/10/03 19:39:51 fvdl Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.484 2002/10/01 12:56:55 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.485 2002/10/03 19:39:51 fvdl Exp $");
 
 #include "opt_cputype.h"
 #include "opt_ddb.h"
@@ -1663,7 +1663,7 @@
                         */
                        if (vendor == CPUVENDOR_INTEL && family >= 6 &&
                            model >= 8 && ci->ci_brand_id &&
-                           ci->ci_brand_id <= 8)
+                           ci->ci_brand_id < 8)
                                brand = i386_intel_brand[ci->ci_brand_id];
                }
        }



Home | Main Index | Thread Index | Old Index