Subject: kern/29770: rgephy's struct mii_phydesc array doesn't end with NULL
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <suetake@privatelink.org>
List: netbsd-bugs
Date: 03/23/2005 12:51:00
>Number:         29770
>Category:       kern
>Synopsis:       rgephy's struct mii_phydesc array doesn't end with NULL
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 23 12:51:00 +0000 2005
>Originator:     Satoshi Suetake
>Release:        NetBSD 3.99.1
>Organization:
>Environment:
NetBSD blackrose.orfina.rim.or.jp 3.99.1 NetBSD 3.99.1 (BLACKROSE) #68: Wed Mar 23 11:28:32 JST 2005  root@blackrose.orfina.rim.or.jp:/usr/src/sys/arch/i386/compile/BLACKROSE i386
>Description:
rgephy(4)'s struct mii_phydesc array doesn't end with NULL.
my machine has two NIC (rtk, re), rgephy matches both cards.
(and panic during boot)

Index: sys/dev/mii/rgephy.c
===================================================================
RCS file: /cvsroot/src/sys/dev/mii/rgephy.c,v
retrieving revision 1.5
diff -u -r1.5 rgephy.c
--- sys/dev/mii/rgephy.c        27 Feb 2005 00:27:31 -0000      1.5
+++ sys/dev/mii/rgephy.c        23 Mar 2005 12:43:16 -0000
@@ -83,6 +83,8 @@
        { MII_OUI_REALTEK,              MII_MODEL_REALTEK_RTL8169S,
          MII_STR_REALTEK_RTL8169S },

+        { 0,                            0,
+          NULL },
 };

 static int

>How-To-Repeat:

>Fix: