From: Antonio Quartulli Date: Fri, 19 Apr 2013 09:04:52 +0000 (+0200) Subject: batman-adv: fix global protection fault during soft_iface destruction X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c501345ce24983d234fc913e7e81b6abe59cb54;p=pandora-kernel.git batman-adv: fix global protection fault during soft_iface destruction batadv_mesh_free() schedules some RCU callbacks which need the bat_priv struct to do their jobs, while free_netdev(), which is called immediately after, is destroying the private data. Put an rcu_barrier() in the middle so that free_netdev() is invoked only after all the callbacks returned. This bug has been introduced by ab8f433dd39be94e8617cff2dfe9f7eca162eb15 ("batman-adv: Move deinitialization of soft-interface to destructor") Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner Signed-off-by: David S. Miller --- Reading git-diff-tree failed