git: 9bc6980bdf57 - main - if_ovpn: Destroy the datapath lock when destroying a clone
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Jul 2025 17:39:17 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=9bc6980bdf57432ee8519a3707423f410c5ec639
commit 9bc6980bdf57432ee8519a3707423f410c5ec639
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-07-25 13:13:31 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-07-25 17:39:01 +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
---
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 4c7cbed06bf0..3ff55dc3040d 100644
--- a/sys/net/if_ovpn.c
+++ b/sys/net/if_ovpn.c
@@ -2521,6 +2521,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);
}