diff options
author | Bob Copeland <me@bobcopeland.com> | 2008-05-12 21:16:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-20 17:48:12 -0400 |
commit | 89fd2e282ad510f801c1f44a660086f9d5bdf088 (patch) | |
tree | 1cf6089fc14b4ac5fd0baa0b1e2e90d796f87a28 /Documentation/SecurityBugs | |
parent | 6f704992d3658aadff9e506c7fd80957fce33c5f (diff) |
ath5k: Fix loop variable initializations
In ath5k_tasklet_rx, both status structures 'rxs' and 'rs' are
initialized at the top of the tasklet, but not within the loop.
If the loop is executed multiple times in the tasklet then the
variables may see changes from previous packets.
For TKIP, this results in 'Invalid Michael MIC' errors if two packets
are processed in the tasklet: rxs.flag gets set to RX_DECRYPTED by
mac80211 when it decrypts the first encrypted packet. The subsequent
packet will have RX_DECRYPTED set upon entry to mac80211, so mac80211
will not try to decrypt it.
We currently initialize all but two fields in the structures, so fix
the other two.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'Documentation/SecurityBugs')
0 files changed, 0 insertions, 0 deletions