aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Ganzhorn <peter.ganzhorn@gmail.com>2026-04-20 16:59:59 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2026-04-20 16:59:59 +0000
commitf49f61f19463c21125bb1215cf8e0530f52953e3 (patch)
tree9141bbd28f068a147d53684b59e42d46973384df
parentffad36e1d7002a7da751856b28eb50c36b137abb (diff)
iflib: Add a missing CURVNET_RESTORE() in the error path
Signed-off-by: Peter Ganzhorn <peter.ganzhorn@gmail.com> Reviewed by: zlei Fixes: 6d49b41ee84b iflib: Add pfil hooks MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/2150
-rw-r--r--sys/net/iflib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index f16355ab1460..0ad805cb7c16 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -2954,8 +2954,10 @@ iflib_rxeof(iflib_rxq_t rxq, qidx_t budget)
ri.iri_frags = rxq->ifr_frags;
err = ctx->isc_rxd_pkt_get(ctx->ifc_softc, &ri);
- if (err)
+ if (err) {
+ CURVNET_RESTORE();
goto err;
+ }
rx_pkts += 1;
rx_bytes += ri.iri_len;
if (sctx->isc_flags & IFLIB_HAS_RXCQ) {