From: Eric Dumazet Date: Sat, 30 Oct 2010 23:21:28 +0000 (-0700) Subject: ip_gre: fix fallback tunnel setup X-Git-Tag: v2.6.37-rc1~11^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3285ee3bb2e158299ff19b947e41da735980d954;p=pandora-kernel.git ip_gre: fix fallback tunnel setup Before making the fallback tunnel visible to lookups, we should make sure it is completely setup, once ipgre_tunnel_init() had been called and tstats per_cpu pointer allocated. move rcu_assign_pointer(ign->tunnels_wc[0], tunnel); from ipgre_fb_tunnel_init() to ipgre_init_net() Based on a patch from Pavel Emelyanov Reported-by: Pavel Emelyanov Signed-off-by: Eric Dumazet Acked-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed