Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Fix memory leak of struct if_percpuq on interface de...
details: https://anonhg.NetBSD.org/src/rev/7746dc808f33
branches: trunk
changeset: 819453:7746dc808f33
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Dec 06 01:23:01 2016 +0000
description:
Fix memory leak of struct if_percpuq on interface destruction
diffstat:
sys/net/if.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 74b37b9e8c70 -r 7746dc808f33 sys/net/if.c
--- a/sys/net/if.c Mon Dec 05 22:59:17 2016 +0000
+++ b/sys/net/if.c Tue Dec 06 01:23:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.c,v 1.362 2016/11/15 01:50:06 ozaki-r Exp $ */
+/* $NetBSD: if.c,v 1.363 2016/12/06 01:23:01 ozaki-r Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.362 2016/11/15 01:50:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.363 2016/12/06 01:23:01 ozaki-r Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -833,6 +833,7 @@
softint_disestablish(ipq->ipq_si);
percpu_foreach(ipq->ipq_ifqs, &if_percpuq_purge_ifq, NULL);
percpu_free(ipq->ipq_ifqs, sizeof(struct ifqueue));
+ kmem_free(ipq, sizeof(*ipq));
}
void
Home |
Main Index |
Thread Index |
Old Index