Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net/lagg Fix missing freeing resource related to protocol



details:   https://anonhg.NetBSD.org/src/rev/b0649e7665b9
branches:  trunk
changeset: 364593:b0649e7665b9
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu Mar 31 01:49:02 2022 +0000

description:
Fix missing freeing resource related to protocol

pointed out by k-goda@IIJ

diffstat:

 sys/net/lagg/if_lagg.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c2adfd4661e2 -r b0649e7665b9 sys/net/lagg/if_lagg.c
--- a/sys/net/lagg/if_lagg.c    Thu Mar 31 01:46:25 2022 +0000
+++ b/sys/net/lagg/if_lagg.c    Thu Mar 31 01:49:02 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_lagg.c,v 1.34 2022/03/31 01:46:25 yamaguchi Exp $   */
+/*     $NetBSD: if_lagg.c,v 1.35 2022/03/31 01:49:02 yamaguchi Exp $   */
 
 /*
  * Copyright (c) 2005, 2006 Reyk Floeter <reyk%openbsd.org@localhost>
@@ -20,7 +20,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.34 2022/03/31 01:46:25 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.35 2022/03/31 01:49:02 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -2414,6 +2414,7 @@
        pserialize_perform(sc->sc_psz);
        lagg_port_purgemulti(sc, lp);
        lagg_port_purgevlan(sc, lp);
+       lagg_proto_freeport(sc, lp);
 
 teardown_lladdr:
        IFNET_LOCK(ifp_port);



Home | Main Index | Thread Index | Old Index