Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/dev/pci Apply patch, requested by riastradh in ticket...



details:   https://anonhg.NetBSD.org/src/rev/2db621a1fe18
branches:  netbsd-8
changeset: 376556:2db621a1fe18
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jun 21 21:29:57 2023 +0000

description:
Apply patch, requested by riastradh in ticket #1842:

        sys/dev/pci/if_wm.c                     (apply patch)

Fix a bug introduced in ticket #1795.

diffstat:

 sys/dev/pci/if_wm.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d325d70567eb -r 2db621a1fe18 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Wed Jun 21 21:26:16 2023 +0000
+++ b/sys/dev/pci/if_wm.c       Wed Jun 21 21:29:57 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.508.4.48 2023/01/23 14:01:25 martin Exp $  */
+/*     $NetBSD: if_wm.c,v 1.508.4.49 2023/06/21 21:29:57 martin Exp $  */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.508.4.48 2023/01/23 14:01:25 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.508.4.49 2023/06/21 21:29:57 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -9809,7 +9809,7 @@ wm_linkintr_gmii(struct wm_softc *sc, ui
                if (wm_phy_need_linkdown_discard(sc)) {
                        DPRINTF(sc, WM_DEBUG_LINK,
                            ("%s: linkintr: Clear linkdown discard flag\n",
-                               device_xname(dev)));
+                               device_xname(sc->sc_dev)));
                        wm_clear_linkdown_discard(sc);
                }
        } else {
@@ -9818,7 +9818,7 @@ wm_linkintr_gmii(struct wm_softc *sc, ui
                if (wm_phy_need_linkdown_discard(sc)) {
                        DPRINTF(sc, WM_DEBUG_LINK,
                            ("%s: linkintr: Set linkdown discard flag\n",
-                               device_xname(dev)));
+                               device_xname(sc->sc_dev)));
                        wm_set_linkdown_discard(sc);
                }
        }



Home | Main Index | Thread Index | Old Index