Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Fix off by one read.
details: https://anonhg.NetBSD.org/src/rev/150c577a53df
branches: trunk
changeset: 783196:150c577a53df
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Dec 10 08:36:03 2012 +0000
description:
Fix off by one read.
diffstat:
sys/dev/raidframe/rf_driver.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ccbab9873c92 -r 150c577a53df sys/dev/raidframe/rf_driver.c
--- a/sys/dev/raidframe/rf_driver.c Mon Dec 10 08:19:59 2012 +0000
+++ b/sys/dev/raidframe/rf_driver.c Mon Dec 10 08:36:03 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_driver.c,v 1.130 2012/10/30 00:33:11 mrg Exp $ */
+/* $NetBSD: rf_driver.c,v 1.131 2012/12/10 08:36:03 msaitoh Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -66,7 +66,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.130 2012/10/30 00:33:11 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.131 2012/12/10 08:36:03 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_raid_diagnostic.h"
@@ -866,7 +866,7 @@
int i;
rf_ResetDebugOptions();
- for (i = 0; cfgPtr->debugVars[i][0] && i < RF_MAXDBGV; i++) {
+ for (i = 0; i < RF_MAXDBGV && cfgPtr->debugVars[i][0]; i++) {
name_p = rf_find_non_white(&cfgPtr->debugVars[i][0]);
white_p = rf_find_white(name_p); /* skip to start of 2nd
* word */
Home |
Main Index |
Thread Index |
Old Index