Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net in ether_ifdetach(), clear if_mowner before releasin...
details: https://anonhg.NetBSD.org/src/rev/1a90146045ac
branches: trunk
changeset: 779216:1a90146045ac
user: chs <chs%NetBSD.org@localhost>
date: Fri May 11 04:05:54 2012 +0000
description:
in ether_ifdetach(), clear if_mowner before releasing what it points to.
fixes PR 42982.
diffstat:
sys/net/if_ethersubr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 5b9f1fcf76e8 -r 1a90146045ac sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c Thu May 10 19:53:26 2012 +0000
+++ b/sys/net/if_ethersubr.c Fri May 11 04:05:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ethersubr.c,v 1.188 2011/06/16 19:47:30 kefren Exp $ */
+/* $NetBSD: if_ethersubr.c,v 1.189 2012/05/11 04:05:54 chs Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.188 2011/06/16 19:47:30 kefren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.189 2012/05/11 04:05:54 chs Exp $");
#include "opt_inet.h"
#include "opt_atalk.h"
@@ -1168,6 +1168,7 @@
if_free_sadl(ifp);
#endif
+ ifp->if_mowner = NULL;
MOWNER_DETACH(&ec->ec_rx_mowner);
MOWNER_DETACH(&ec->ec_tx_mowner);
}
Home |
Main Index |
Thread Index |
Old Index