The branch stable/14 has been updated by zlei:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=37340348b9a8eee17ade7b732f3d541e592df840

commit 37340348b9a8eee17ade7b732f3d541e592df840
Author:     Peter Ganzhorn <[email protected]>
AuthorDate: 2026-04-20 16:59:59 +0000
Commit:     Zhenlei Huang <[email protected]>
CommitDate: 2026-07-13 01:40:06 +0000

    iflib: Add a missing CURVNET_RESTORE() in the error path
    
    Signed-off-by:  Peter Ganzhorn <[email protected]>
    Reviewed by:    zlei
    Fixes:          6d49b41ee84b iflib: Add pfil hooks
    MFC after:      3 days
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/2150
    
    (cherry picked from commit f49f61f19463c21125bb1215cf8e0530f52953e3)
    (cherry picked from commit d11419ed37a61a4896381f91fd942c4fff2e66dd)
---
 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 0a90c417cc80..de76215f9f44 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -2944,8 +2944,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) {

Reply via email to