Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/cavium/dev as the xxx implicitly points out, t...



details:   https://anonhg.NetBSD.org/src/rev/a6477d75721f
branches:  trunk
changeset: 826192:a6477d75721f
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Aug 20 11:05:24 2017 +0000

description:
as the xxx implicitly points out, there's a division by zero here, so
panic right away; found by mootja

diffstat:

 sys/arch/mips/cavium/dev/octeon_gmx.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6f82a7a16ea7 -r a6477d75721f sys/arch/mips/cavium/dev/octeon_gmx.c
--- a/sys/arch/mips/cavium/dev/octeon_gmx.c     Sun Aug 20 11:03:04 2017 +0000
+++ b/sys/arch/mips/cavium/dev/octeon_gmx.c     Sun Aug 20 11:05:24 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: octeon_gmx.c,v 1.2 2015/06/01 22:55:12 matt Exp $      */
+/*     $NetBSD: octeon_gmx.c,v 1.3 2017/08/20 11:05:24 maxv Exp $      */
 
 /*
  * Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_gmx.c,v 1.2 2015/06/01 22:55:12 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_gmx.c,v 1.3 2017/08/20 11:05:24 maxv Exp $");
 
 #include "opt_octeon.h"
 
@@ -654,6 +654,7 @@
                break;
        default:
                baudrate = 0/* XXX */;
+               panic("unable to get baudrate");
                break;
        }
        ifp->if_baudrate = baudrate;



Home | Main Index | Thread Index | Old Index