Module Name: src
Committed By: msaitoh
Date: Sun Nov 10 13:34:52 UTC 2019
Modified Files:
src/sys/dev/pci: if_stge.c
Log Message:
Add missing initialization of sc_dev.
To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/dev/pci/if_stge.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_stge.c
diff -u src/sys/dev/pci/if_stge.c:1.72 src/sys/dev/pci/if_stge.c:1.73
--- src/sys/dev/pci/if_stge.c:1.72 Wed Oct 30 07:26:28 2019
+++ src/sys/dev/pci/if_stge.c Sun Nov 10 13:34:52 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_stge.c,v 1.72 2019/10/30 07:26:28 msaitoh Exp $ */
+/* $NetBSD: if_stge.c,v 1.73 2019/11/10 13:34:52 msaitoh Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.72 2019/10/30 07:26:28 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.73 2019/11/10 13:34:52 msaitoh Exp $");
#include <sys/param.h>
@@ -264,6 +264,7 @@ stge_attach(device_t parent, device_t se
uint8_t enaddr[ETHER_ADDR_LEN];
char intrbuf[PCI_INTRSTR_LEN];
+ sc->sc_dev = self;
callout_init(&sc->sc_tick_ch, 0);
sp = stge_lookup(pa);