]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: Fix dst ref-count.
authorPravin B Shelar <pshelar@nicira.com>
Mon, 24 Mar 2014 05:06:36 +0000 (22:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2014 19:18:40 +0000 (15:18 -0400)
commit0ba6ba0061832d0055156be56135a9680cb2e551
tree4ebae2c7d156ffa99c1c6ec2d14a8061d0a7b742
parent2fd5602c1e19ef51c1ef22fe1af8195c96bdd3f9
ip_tunnel: Fix dst ref-count.

Commit c0858400027 (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>
net/ipv4/gre_demux.c
net/ipv4/ip_tunnel.c
net/ipv4/ip_tunnel_core.c