Subject: CVS commit: src/sys/net80211
To: None <source-changes@NetBSD.org>
From: DEGROOTE Arnaud <degroote@netbsd.org>
List: source-changes
Date: 01/13/2008 13:01:12
Module Name:	src
Committed By:	degroote
Date:		Sun Jan 13 13:01:12 UTC 2008

Modified Files:
	src/sys/net80211: ieee80211_netbsd.c ieee80211_netbsd.h
	    ieee80211_proto.c

Log Message:
Fix  ieee80211_node leak

We can't use IF_PURGE here because m_pkthdr.rcvif have here a special meaning :
it holds ieee80211_node to which the management frame should be sent and the
node has its reference count bumped.

Introduce ieee80211_drain_ifq which release the node before freeing the mbuf.
Use it instead of IF_PURGE.

From DragonflyBSD


To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 src/sys/net80211/ieee80211_netbsd.c
cvs rdiff -r1.11 -r1.12 src/sys/net80211/ieee80211_netbsd.h
cvs rdiff -r1.28 -r1.29 src/sys/net80211/ieee80211_proto.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.