From: Johannes Berg Date: Wed, 6 Jul 2011 19:59:39 +0000 (+0200) Subject: mac80211: fix CCMP races X-Git-Tag: v3.1-rc1~316^2~124^2^2~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aba83a0b301c32dbb91c017f33307611e1a1d384;p=pandora-kernel.git mac80211: fix CCMP races Since we can process multiple packets at the same time for different ACs, but the PN is allocated from a single counter, we need to use an atomic value there. Use atomic64_t to make this cheaper on 64-bit platforms, other platforms will support this through software emulation, see lib/atomic64.c. We also need to use an on-stack scratch buf so that multiple packets won't corrupt each others scratch buffers. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed