svn commit: r206398 - head/sys/net80211
Rui Paulo
rpaulo at FreeBSD.org
Thu Apr 8 13:34:08 UTC 2010
Author: rpaulo
Date: Thu Apr 8 13:34:08 2010
New Revision: 206398
URL: http://svn.freebsd.org/changeset/base/206398
Log:
Prevent foot-shooting in ieee80211_ratectl_node_deinit().
MFC after: 1 month
Modified:
head/sys/net80211/ieee80211_ratectl.h
Modified: head/sys/net80211/ieee80211_ratectl.h
==============================================================================
--- head/sys/net80211/ieee80211_ratectl.h Thu Apr 8 12:07:40 2010 (r206397)
+++ head/sys/net80211/ieee80211_ratectl.h Thu Apr 8 13:34:08 2010 (r206398)
@@ -85,6 +85,8 @@ ieee80211_ratectl_node_deinit(struct iee
{
const struct ieee80211vap *vap = ni->ni_vap;
+ if (ni->ni_rctls == NULL) /* ratectl not setup */
+ return;
vap->iv_rate->ir_node_deinit(ni);
}
More information about the svn-src-all
mailing list