]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a VAP BSS node reference in the HT code to actually take a reference
authoradrian <adrian@FreeBSD.org>
Fri, 10 May 2013 09:37:58 +0000 (09:37 +0000)
committeradrian <adrian@FreeBSD.org>
Fri, 10 May 2013 09:37:58 +0000 (09:37 +0000)
commit9bbb992f11f7ee6b33d4001b133e80dd0a041ac2
tree2688be70f0657941e334e1108b91bb7e4728a48d
parent705957e6ae8d9f478340056399415edf4c932023
Fix a VAP BSS node reference in the HT code to actually take a reference
before using said node.

The "blessed" way here is to take a node reference before referencing
anything inside the node, otherwise the node can be freed between
the time the pointer is copied/dereferenced and the time the node contents
are used.

This mirrors fixes that I've done elsewhere in the net80211/driver
stack.

PR: kern/178470
sys/net80211/ieee80211_ht.c