Source-Changes-HG archive

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

[src/trunk]: src/sys/net/lagg Added missing kmem_free



details:   https://anonhg.NetBSD.org/src/rev/41f3d29ceffe
branches:  trunk
changeset: 364589:41f3d29ceffe
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu Mar 31 01:40:34 2022 +0000

description:
Added missing kmem_free

pointed out by k-goda@IIJ

diffstat:

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

diffs (26 lines):

diff -r 0a31c0fb8a12 -r 41f3d29ceffe sys/net/lagg/if_lagg_lacp.c
--- a/sys/net/lagg/if_lagg_lacp.c       Thu Mar 31 01:39:09 2022 +0000
+++ b/sys/net/lagg/if_lagg_lacp.c       Thu Mar 31 01:40:34 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_lagg_lacp.c,v 1.14 2022/03/31 01:36:47 yamaguchi Exp $      */
+/*     $NetBSD: if_lagg_lacp.c,v 1.15 2022/03/31 01:40:34 yamaguchi Exp $      */
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause-NetBSD
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.14 2022/03/31 01:36:47 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg_lacp.c,v 1.15 2022/03/31 01:40:34 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_lagg.h"
@@ -499,6 +499,7 @@
 
 destroy_lock:
        mutex_destroy(&lsc->lsc_lock);
+       kmem_free(lsc, sizeof(*lsc));
 
        return error;
 }



Home | Main Index | Thread Index | Old Index