]> git.karo-electronics.de Git - karo-tx-linux.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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:46:58 +0000 (16:46 +0000)
commit0884603402e58608f62f17306aedb33b862d7b6d
tree7f415a31331ddbfacc216dec66c863240f1a41e0
parentb0f5b374eadb79d66dedd9cec7b0f4e7bb6f70c4
mac80211: make sure data is accessible in EAPOL check

commit 6dbda2d00d466225f9db1dc695ff852443f28832 upstream.

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.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/mac80211/rx.c