ip_tunnel: fix possible rtable leak
authorDmitry Popov <ixaphire@qrator.net>
Fri, 6 Jun 2014 00:34:37 +0000 (04:34 +0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Jun 2014 01:44:44 +0000 (18:44 -0700)
ip_rt_put(rt) is always called in "error" branches above, but was missed in
skb_cow_head branch. As rt is not yet bound to skb here we have to release it by
hand.

Signed-off-by: Dmitry Popov <ixaphire@qrator.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c

Simple merge