Add IEEE80211_NODE_UNLOCK() to match the IEEE80211_NODE_LOCK() .

This commit is contained in:
dyoung 2007-12-20 20:56:18 +00:00
parent 9f5c1f09f7
commit d0630858ad

View File

@ -1,4 +1,4 @@
/* $NetBSD: ieee80211_node.c,v 1.59 2006/11/16 01:33:41 christos Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.60 2007/12/20 20:56:18 dyoung Exp $ */
/*-
* Copyright (c) 2001 Atsushi Onoe
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@ -36,7 +36,7 @@
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211_node.c,v 1.65 2005/08/13 17:50:21 sam Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: ieee80211_node.c,v 1.59 2006/11/16 01:33:41 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: ieee80211_node.c,v 1.60 2007/12/20 20:56:18 dyoung Exp $");
#endif
#include "opt_inet.h"
@ -2462,6 +2462,7 @@ ieee80211_node_table_cleanup(struct ieee80211_node_table *nt)
IEEE80211_NODE_LOCK(nt);
ieee80211_free_allnodes_locked(nt);
IEEE80211_NODE_UNLOCK(nt);
if (nt->nt_keyixmap != NULL) {
/* XXX verify all entries are NULL */
int i;