1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

avoid possible null pointer deref when refcnt debugging is enabled; the

node may be orphaned

Submitted by:	Tai-hwa Liang
This commit is contained in:
Sam Leffler 2005-01-18 20:34:22 +00:00
parent 96acc1b61c
commit 29d368a780
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140454

View File

@ -1234,7 +1234,7 @@ ieee80211_free_node(struct ieee80211_node *ni)
struct ieee80211_node_table *nt = ni->ni_table;
#ifdef IEEE80211_DEBUG_REFCNT
IEEE80211_DPRINTF(nt->nt_ic, IEEE80211_MSG_NODE,
IEEE80211_DPRINTF(ni->ni_ic, IEEE80211_MSG_NODE,
"%s (%s:%u) %s refcnt %d\n", __func__, func, line,
ether_sprintf(ni->ni_macaddr), ieee80211_node_refcnt(ni)-1);
#endif