]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: make sure data is accessible in EAPOL check
authorJohannes Berg <johannes.berg@intel.com>
Thu, 25 Oct 2012 22:41:23 +0000 (00:41 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 20:52:42 +0000 (22:52 +0200)
commitdcf8bce321d64292050f3d42485a4ab7237fdd80
tree5a6df085d68670cbe478ab3cbed56e66fbd5bb24
parente4b96b7da1b37e0f361b04bb6e5d50c3c0056319
mac80211: make sure data is accessible in EAPOL check

The code to allow EAPOL frames even when the station
isn't yet marked associated needs to check that the
incoming frame is long enough and due to paged RX it
also can't assume skb->data contains the right data,
it must use skb_copy_bits(). Fix this to avoid using
data that doesn't really exist.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c