git: f49f61f19463 - main - iflib: Add a missing CURVNET_RESTORE() in the error path
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 Apr 2026 17:03:06 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=f49f61f19463c21125bb1215cf8e0530f52953e3
commit f49f61f19463c21125bb1215cf8e0530f52953e3
Author: Peter Ganzhorn <peter.ganzhorn@gmail.com>
AuthorDate: 2026-04-20 16:59:59 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2026-04-20 16:59:59 +0000
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
---
sys/net/iflib.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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) {