Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/marvell also fix this other off by one.



details:   https://anonhg.NetBSD.org/src/rev/85b18827a367
branches:  trunk
changeset: 820588:85b18827a367
user:      maya <maya%NetBSD.org@localhost>
date:      Wed Jan 11 19:42:02 2017 +0000

description:
also fix this other off by one.

diffstat:

 sys/arch/arm/marvell/armadaxp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dc7584a9a347 -r 85b18827a367 sys/arch/arm/marvell/armadaxp.c
--- a/sys/arch/arm/marvell/armadaxp.c   Wed Jan 11 19:32:25 2017 +0000
+++ b/sys/arch/arm/marvell/armadaxp.c   Wed Jan 11 19:42:02 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: armadaxp.c,v 1.17 2017/01/11 19:32:25 maya Exp $       */
+/*     $NetBSD: armadaxp.c,v 1.18 2017/01/11 19:42:02 maya Exp $       */
 /*******************************************************************************
 Copyright (C) Marvell International Ltd. and its affiliates
 
@@ -37,7 +37,7 @@
 *******************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.17 2017/01/11 19:32:25 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.18 2017/01/11 19:42:02 maya Exp $");
 
 #define _INTR_PRIVATE
 
@@ -708,7 +708,7 @@
 armadaxp_err_pic_source_name(struct pic_softc *pic, int irq,
     char *buf, size_t len)
 {
-       if (irq > __arraycount(armadaxp_err_pic_source_names)) {
+       if (irq >= __arraycount(armadaxp_err_pic_source_names)) {
                snprintf(buf, len, "Unknown IRQ %d", irq);
                return;
        }



Home | Main Index | Thread Index | Old Index