git: 12e61434db07 - stable/14 - in_mcast: Fix a lock leak in inp_set_source_filters()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Apr 2026 12:37:45 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=12e61434db0792f58bb91f3f4ac28b411513ffae
commit 12e61434db0792f58bb91f3f4ac28b411513ffae
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-04-16 19:57:57 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-04-22 12:37:32 +0000
in_mcast: Fix a lock leak in inp_set_source_filters()
MFC after: 3 days
Reported by: Claude Opus 4.6
(cherry picked from commit bebc1a5b09e358b420077a1b5c0f85f8e7f0812f)
---
sys/netinet/in_mcast.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/netinet/in_mcast.c b/sys/netinet/in_mcast.c
index 3dc4fa271683..b0be48b65437 100644
--- a/sys/netinet/in_mcast.c
+++ b/sys/netinet/in_mcast.c
@@ -2601,6 +2601,7 @@ inp_set_source_filters(struct inpcb *inp, struct sockopt *sopt)
error = copyin(msfr.msfr_srcs, kss,
sizeof(struct sockaddr_storage) * msfr.msfr_nsrcs);
if (error) {
+ IN_MULTI_UNLOCK();
free(kss, M_TEMP);
return (error);
}