Module Name: src Committed By: riastradh Date: Sat Jun 29 11:27:12 UTC 2024
Modified Files: src/sys/arch/arm/sociox: if_scx.c Log Message: scx(4): Fix if_statinc call. We don't have a reference to the local statistics counters, so we can't use if_statinc_ref. But, because net_stat_ref_t is just an alias for void *, the compiler doesn't detect this mistake. PR kern/58380 To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/sys/arch/arm/sociox/if_scx.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/arch/arm/sociox/if_scx.c diff -u src/sys/arch/arm/sociox/if_scx.c:1.43 src/sys/arch/arm/sociox/if_scx.c:1.44 --- src/sys/arch/arm/sociox/if_scx.c:1.43 Thu Jun 15 07:21:45 2023 +++ src/sys/arch/arm/sociox/if_scx.c Sat Jun 29 11:27:12 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: if_scx.c,v 1.43 2023/06/15 07:21:45 nisimura Exp $ */ +/* $NetBSD: if_scx.c,v 1.44 2024/06/29 11:27:12 riastradh Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -49,7 +49,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_scx.c,v 1.43 2023/06/15 07:21:45 nisimura Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_scx.c,v 1.44 2024/06/29 11:27:12 riastradh Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -1399,7 +1399,7 @@ scx_start(struct ifnet *ifp) "DMA segments, dropping...\n"); IFQ_DEQUEUE(&ifp->if_snd, m0); m_freem(m0); - if_statinc_ref(ifp, if_oerrors); + if_statinc(ifp, if_oerrors); continue; } /* Short on resources, just stop for now. */