]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r342966:
authoravos <avos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 15 Jan 2019 02:26:03 +0000 (02:26 +0000)
committeravos <avos@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 15 Jan 2019 02:26:03 +0000 (02:26 +0000)
commit4cc4291f0b48ae49c35ac703f679e2bf756c6add
tree4c7af720bbc91086ac10aef6b855c8026e866b77
parent77d2e820daac5e53288d9dec533446ba1e440c06
MFC r342966:
net80211: fix possible panic for some drivers after r342465

Check if rate control structures were allocated before trying to
access them in various places; this was possible before on
allocation failure (unlikely), but was revealed after r342211
where allocation was deferred.

The patch was adjusted a bit since file contents are different enough
since r306591.

Also, 'rate_stats' sysctl is not available here, so the panic is
unlikely to happen here even without this patch.

git-svn-id: svn://svn.freebsd.org/base/stable/10@343036 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net80211/ieee80211_amrr.c
sys/net80211/ieee80211_rssadapt.c