aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/ip6mr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 705c82886281..825d02fa6586 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -2052,8 +2052,10 @@ int ip6_mr_input(struct sk_buff *skb)
2052 int err; 2052 int err;
2053 2053
2054 err = ip6mr_fib_lookup(net, &fl6, &mrt); 2054 err = ip6mr_fib_lookup(net, &fl6, &mrt);
2055 if (err < 0) 2055 if (err < 0) {
2056 kfree_skb(skb);
2056 return err; 2057 return err;
2058 }
2057 2059
2058 read_lock(&mrt_lock); 2060 read_lock(&mrt_lock);
2059 cache = ip6mr_cache_find(mrt, 2061 cache = ip6mr_cache_find(mrt,