ath6kl: Fix race in aggregation reorder logic
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Wed, 30 May 2012 06:57:11 +0000 (12:27 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 11 Jun 2012 13:13:41 +0000 (16:13 +0300)
commit0faf745872f6d00afb318185e8fb181587974b5a
tree004a1d372b01b330869b99591762674351302b30
parentd154f32ebe3ffe9dea6ed0a91767883b1e7a6bc0
ath6kl: Fix race in aggregation reorder logic

There are many places where tid data are accessed without
the lock (rxtid->lock), this can lead to a race condition
when the timeout handler for aggregatin reorder and the
receive function are getting executed at the same time.
Fix this race, but still there are races which can not
be fixed without rewriting the whole aggregation reorder
logic, for now fix the obvious ones.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/core.h
drivers/net/wireless/ath/ath6kl/txrx.c