From: Thomas Pedersen Date: Wed, 23 Jan 2013 20:18:12 +0000 (-0800) Subject: mac80211: clean up mesh sta allocation warning X-Git-Tag: v3.9-rc1~139^2~31^2^2~80^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=296fcba3ba1b8888aa8f5211de1e25a78b47aeee;p=pandora-kernel.git mac80211: clean up mesh sta allocation warning This refactoring fixes a "scheduling while atomic" warning when allocating a mesh station entry while holding the RCU read lock. Fix this by creating a new function mesh_sta_info_get(), which correctly handles the locking and returns under RCU. Also move some unnecessarily #ifdefed mesh station init code from sta_info_alloc() to __mesh_sta_info_alloc(). Signed-off-by: Thomas Pedersen [change code flow to make sparse happy] Signed-off-by: Johannes Berg --- Reading git-diff-tree failed