From: Eric Dumazet Date: Fri, 8 Jun 2012 06:25:00 +0000 (+0000) Subject: l2tp: fix a race in l2tp_ip_sendmsg() X-Git-Tag: v3.2.23~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b73845cd7629c3b944542999b8e69989a4dd70e;p=pandora-kernel.git l2tp: fix a race in l2tp_ip_sendmsg() [ Upstream commit 4399a4df98a63e30fd16e9d0cecc46ea92269e8f ] Commit 081b1b1bb27f (l2tp: fix l2tp_ip_sendmsg() route handling) added a race, in case IP route cache is disabled. In this case, we should not do the dst_release(&rt->dst), since it'll free the dst immediately, instead of waiting a RCU grace period. Signed-off-by: Eric Dumazet Cc: James Chapman Cc: Denys Fedoryshchenko Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed