Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic add missing bus_dmamap_unload().
details: https://anonhg.NetBSD.org/src/rev/1e14aa7f2579
branches: trunk
changeset: 369632:1e14aa7f2579
user: ryo <ryo%NetBSD.org@localhost>
date: Thu Aug 25 01:58:48 2022 +0000
description:
add missing bus_dmamap_unload().
I deleted it in the previous commit, oops.
diffstat:
sys/dev/ic/dwc_eqos.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 1b2a22faf15a -r 1e14aa7f2579 sys/dev/ic/dwc_eqos.c
--- a/sys/dev/ic/dwc_eqos.c Wed Aug 24 22:09:40 2022 +0000
+++ b/sys/dev/ic/dwc_eqos.c Thu Aug 25 01:58:48 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_eqos.c,v 1.13 2022/08/24 19:22:37 ryo Exp $ */
+/* $NetBSD: dwc_eqos.c,v 1.14 2022/08/25 01:58:48 ryo Exp $ */
/*-
* Copyright (c) 2022 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -33,7 +33,7 @@
#include "opt_net_mpsafe.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_eqos.c,v 1.13 2022/08/24 19:22:37 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_eqos.c,v 1.14 2022/08/25 01:58:48 ryo Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -822,6 +822,8 @@
discarding = true;
goto rx_next;
}
+ bus_dmamap_unload(sc->sc_dmat,
+ sc->sc_rx.buf_map[index].map);
error = eqos_setup_rxbuf(sc, index, new_m);
if (error)
panic("%s: %s: unable to load RX mbuf. error=%d",
Home |
Main Index |
Thread Index |
Old Index