]> 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)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 20:52:42 +0000 (22:52 +0200)
commit6dbda2d00d466225f9db1dc695ff852443f28832
tree5a6df085d68670cbe478ab3cbed56e66fbd5bb24
parent9b395bc3be1cebf0144a127c7e67d56dbdac0930
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