From: Eric Dumazet Date: Fri, 17 Jan 2014 00:41:19 +0000 (-0800) Subject: ipv4: fix a dst leak in tunnels X-Git-Tag: v3.14-rc1~94^2~106 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c7e7610ff6888ea15a901fbcb30c5d461816b34;p=pandora-kernel.git ipv4: fix a dst leak in tunnels This patch : 1) Remove a dst leak if DST_NOCACHE was set on dst Fix this by holding a reference only if dst really cached. 2) Remove a lockdep warning in __tunnel_dst_set() This was reported by Cong Wang. 3) Remove usage of a spinlock where xchg() is enough 4) Remove some spurious inline keywords. Let compiler decide for us. Fixes: 7d442fab0a67 ("ipv4: Cache dst in tunnels") Signed-off-by: Eric Dumazet Cc: Cong Wang Cc: Tom Herbert Cc: Maciej Żenczykowski Signed-off-by: David S. Miller --- Reading git-diff-tree failed