Commit 2015de5f authored by Ben Greear's avatar Ben Greear Committed by David S. Miller
Browse files

ipv6-multicast: Fix memory leak in input path.

Have to free the skb before returning if we fail
the fib lookup.
Signed-off-by: default avatarBen Greear <>
Signed-off-by: default avatarDavid S. Miller <>
parent 29453f65
......@@ -2052,8 +2052,10 @@ int ip6_mr_input(struct sk_buff *skb)
int err;
err = ip6mr_fib_lookup(net, &fl6, &mrt);
if (err < 0)
if (err < 0) {
return err;
cache = ip6mr_cache_find(mrt,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment