]> 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)
commita50a06e8651db4c88367a4f3a249e7bea82c1806
tree5a6df085d68670cbe478ab3cbed56e66fbd5bb24
parentfb990193db5327cb20e4ca06acf63ba8739d3765
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