From: Johannes Berg Date: Mon, 21 Nov 2011 10:23:50 +0000 (+0100) Subject: mac80211: fix RCU warnings in mesh X-Git-Tag: v3.3-rc1~182^2~261^2~149 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30be52e44fd4276d768efffb55d424fb682e6505;p=pandora-kernel.git mac80211: fix RCU warnings in mesh Sparse RCU checking reports two warnings in the mesh path table code. These are due to questionable uses of rcu_dereference. To fix the first one, get rid of mesh_gate_add() and just make mesh_path_add_gate() do the correct deref. To fix the second one, simply remove rcu_dereference() in mesh_gate_del() -- it already gets a proper pointer as indicated by the prototype (no __rcu annotation) and confirmed by the code. Cc: Javier Cardona Cc: Thomas Pedersen Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed