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:
parent
96acc1b61c
commit
29d368a780
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140454
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user