]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: verify that skb data is present
authorJohannes Berg <johannes.berg@intel.com>
Thu, 25 Oct 2012 22:36:40 +0000 (00:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 20:52:42 +0000 (22:52 +0200)
commite4b96b7da1b37e0f361b04bb6e5d50c3c0056319
tree9cbe0d8566b890f43cd8d9f884f8b78104775f29
parent2249160e38a80aece04f6e907199a6490251dd7d
mac80211: verify that skb data is present

A number of places in the mesh code don't check that
the frame data is present and in the skb header when
trying to access. Add those checks and the necessary
pskb_may_pull() calls. This prevents accessing data
that doesn't actually exist.

To do this, export ieee80211_get_mesh_hdrlen() to be
able to use it in mac80211.

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