projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6be19f
)
ipv6-multicast: Fix memory leak in input path.
author
Ben Greear
<greearb@candelatech.com>
Tue, 27 Sep 2011 19:16:08 +0000
(15:16 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:33:48 +0000
(16:33 -0800)
[ Upstream commit
2015de5fe2a47086a3260802275932bfd810884e
]
Have to free the skb before returning if we fail
the fib lookup.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6mr.c
patch
|
blob
|
history
diff --git
a/net/ipv6/ip6mr.c
b/net/ipv6/ip6mr.c
index 82a809901f8e9d3522f562562edf1e0f5e05e74d..450a1ffdfe0b59f7cb01b061bf701d2c4f588b69 100644
(file)
--- a/
net/ipv6/ip6mr.c
+++ b/
net/ipv6/ip6mr.c
@@
-2051,8
+2051,10
@@
int ip6_mr_input(struct sk_buff *skb)
int err;
err = ip6mr_fib_lookup(net, &fl6, &mrt);
- if (err < 0)
+ if (err < 0) {
+ kfree_skb(skb);
return err;
+ }
read_lock(&mrt_lock);
cache = ip6mr_cache_find(mrt,