aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <[email protected]>2010-02-12 08:05:45 +0000
committerJohn W. Linville <[email protected]>2010-02-12 19:50:22 +0000
commit5affcd6ba2036b59a4dee3f0576ae3584e92e4f1 (patch)
tree78c6d3a329968b253d5c67c7d11adc0ab9af3c3d /lib/debugobjects.c
parentiwlwifi: fix AMSDU Rx after paged Rx patch (diff)
downloadkernel-5affcd6ba2036b59a4dee3f0576ae3584e92e4f1.tar.gz
kernel-5affcd6ba2036b59a4dee3f0576ae3584e92e4f1.zip
mac80211: fix handling of null-rate control in rate_control_get_rate
For hardware with IEEE80211_HW_HAS_RATE_CONTROL the rate controller is not initialized. However, calling functions such as ieee80211_beacon_get result in the rate_control_get_rate function getting called, which is accessing (in this case uninitialized) rate control structures unconditionally. Fix by exiting the function before setting the rates for HW with IEEE80211_HW_HAS_RATE_CONTROL set. The initialization of the ieee80211_tx_info struct is intentionally still executed. Signed-off-by: Juuso Oikarinen <[email protected]> Reviewed-by: Kalle Valo <[email protected]> Cc: [email protected] Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions