Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add missing initialization of sc_dev.



details:   https://anonhg.NetBSD.org/src/rev/05f77dde6101
branches:  trunk
changeset: 966663:05f77dde6101
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Nov 10 13:34:52 2019 +0000

description:
Add missing initialization of sc_dev.

diffstat:

 sys/dev/pci/if_stge.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 64d37d473e7b -r 05f77dde6101 sys/dev/pci/if_stge.c
--- a/sys/dev/pci/if_stge.c     Sun Nov 10 13:28:06 2019 +0000
+++ b/sys/dev/pci/if_stge.c     Sun Nov 10 13:34:52 2019 +0000
@@ -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 @@
        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);



Home | Main Index | Thread Index | Old Index