The branch stable/14 has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9fd5e22f426e77991971a907d442fbeb573441ab

commit 9fd5e22f426e77991971a907d442fbeb573441ab
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2025-07-25 13:13:31 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2025-08-05 13:59:12 +0000

    if_ovpn: Destroy the datapath lock when destroying a clone
    
    Reviewed by:    kp
    MFC after:      2 weeks
    Sponsored by:   Stormshield
    Sponsored by:   Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D51495
    
    (cherry picked from commit 9bc6980bdf57432ee8519a3707423f410c5ec639)
---
 sys/net/if_ovpn.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/net/if_ovpn.c b/sys/net/if_ovpn.c
index 1de48c8f639e..52a5f08d738a 100644
--- a/sys/net/if_ovpn.c
+++ b/sys/net/if_ovpn.c
@@ -2517,6 +2517,7 @@ ovpn_clone_destroy_cb(struct epoch_context *ctx)
 
        COUNTER_ARRAY_FREE(sc->counters, OVPN_COUNTER_SIZE);
 
+       rm_destroy(&sc->lock);
        if_free(sc->ifp);
        free(sc, M_OVPN);
 }

Reply via email to