Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Before freeing an ifnet_lock, destroy its mutex. Sh...
details: https://anonhg.NetBSD.org/src/rev/aa7a8ab48244
branches: trunk
changeset: 771243:aa7a8ab48244
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Nov 16 06:09:37 2011 +0000
description:
Before freeing an ifnet_lock, destroy its mutex. Should help with
kern/43294.
diffstat:
sys/net/if.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 562522b422fc -r aa7a8ab48244 sys/net/if.c
--- a/sys/net/if.c Wed Nov 16 04:52:40 2011 +0000
+++ b/sys/net/if.c Wed Nov 16 06:09:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.c,v 1.256 2011/10/28 20:11:58 dyoung Exp $ */
+/* $NetBSD: if.c,v 1.257 2011/11/16 06:09:37 dyoung 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.256 2011/10/28 20:11:58 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.257 2011/11/16 06:09:37 dyoung Exp $");
#include "opt_inet.h"
@@ -1954,6 +1954,7 @@
ifp->if_ioctl_lock = NULL;
percpu_free(il->il_nenter, sizeof(uint64_t));
il->il_nenter = NULL;
+ mutex_destroy(&il->il_lock);
kmem_free(il, sizeof(*il));
}
Home |
Main Index |
Thread Index |
Old Index