ip_tunnel: Fix dst ref-count.
authorPravin B Shelar <pshelar@nicira.com>
Mon, 24 Mar 2014 05:06:36 +0000 (22:06 -0700)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 7 May 2014 06:31:03 +0000 (15:31 +0900)
commit8d6c897e04863c2cc1403ab3cc388a6d84ed3d40
tree3c59995057c2357662b51fb4b260d24c3832f9de
parentb00cec5630a7e65776e5546ab8dba2e83099accf
ip_tunnel: Fix dst ref-count.

[ Upstream commit fbd02dd405d0724a0f25897ed4a6813297c9b96f ]

Commit 10ddceb22ba (ip_tunnel:multicast process cause panic due
to skb->_skb_refdst NULL pointer) removed dst-drop call from
ip-tunnel-recv.

Following commit reintroduce dst-drop and fix the original bug by
checking loopback packet before releasing dst.
Original bug: https://bugzilla.kernel.org/show_bug.cgi?id=70681

CC: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/ipv4/gre_demux.c
net/ipv4/ip_tunnel.c
net/ipv4/ip_tunnel_core.c