Module Name: src
Committed By: sevan
Date: Sat May 30 21:39:49 UTC 2020
Modified Files:
src/sys/dev/pci: if_rge.c
Log Message:
Initialise sc->sc_dev, otherwise unnamed interfaces show up and things go
downhill from there.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pci/if_rge.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_rge.c
diff -u src/sys/dev/pci/if_rge.c:1.11 src/sys/dev/pci/if_rge.c:1.12
--- src/sys/dev/pci/if_rge.c:1.11 Wed May 20 20:18:37 2020
+++ src/sys/dev/pci/if_rge.c Sat May 30 21:39:49 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: if_rge.c,v 1.11 2020/05/20 20:18:37 sevan Exp $ */
+/* $NetBSD: if_rge.c,v 1.12 2020/05/30 21:39:49 sevan Exp $ */
/* $OpenBSD: if_rge.c,v 1.3 2020/03/27 15:15:24 krw Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rge.c,v 1.11 2020/05/20 20:18:37 sevan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rge.c,v 1.12 2020/05/30 21:39:49 sevan Exp $");
/* #include "vlan.h" Sevan */
@@ -203,6 +203,8 @@ rge_attach(device_t parent, device_t sel
pci_set_powerstate(pa->pa_pc, pa->pa_tag, PCI_PMCSR_STATE_D0);
+ sc->sc_dev = self;
+
/*
* Map control/status registers.
*/