summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2008-12-15 08:15:49 +0100
committerDavid S. Miller <davem@davemloft.net>2008-12-15 08:15:49 +0100
commit8da73b73ef29d537ba09f29393cd68707833e746 (patch)
treeb4281dcf12f6033774b81c05b24296922eeada28 /net/ipv6
parentipv6/mcast: join error paths using goto (diff)
downloadlinux-8da73b73ef29d537ba09f29393cd68707833e746.tar.xz
linux-8da73b73ef29d537ba09f29393cd68707833e746.zip
ip6mr: use goto to common label instead of opencoding
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ip6mr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 9eed2422b3e3..3c51b2d827f4 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -1501,8 +1501,7 @@ static int ip6mr_forward2(struct sk_buff *skb, struct mfc6_cache *c, int vifi)
vif->dev->stats.tx_bytes += skb->len;
vif->dev->stats.tx_packets++;
ip6mr_cache_report(net, skb, vifi, MRT6MSG_WHOLEPKT);
- kfree_skb(skb);
- return 0;
+ goto out_free;
}
#endif