From 081b1b1bb27f1f4a3b682f4cf75103108f2066d7 Mon Sep 17 00:00:00 2001 From: Eric Dumazet Date: Sat, 11 Jun 2011 22:27:09 +0000 Subject: [PATCH] l2tp: fix l2tp_ip_sendmsg() route handling l2tp_ip_sendmsg() in non connected mode incorrectly calls sk_setup_caps(). Subsequent send() calls send data to wrong destination. We can also avoid changing dst refcount in connected mode, using appropriate rcu locking. Once output route lookups can also be done under rcu, sendto() calls wont change dst refcounts too. Signed-off-by: Eric Dumazet CC: James Chapman Signed-off-by: David S. Miller --- Reading git-format-patch failed