projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb4fa76
)
xfrm: Fix xfrm_state_migrate leak
author
Thomas Egerer
<
[email protected]
>
Mon, 6 Dec 2010 23:28:56 +0000
(23:28 +0000)
committer
David S. Miller
<
[email protected]
>
Fri, 10 Dec 2010 04:35:27 +0000
(20:35 -0800)
xfrm_state_migrate calls kfree instead of xfrm_state_put to free
a failed state. According to git commit
553f9118
this can cause
memory leaks.
Signed-off-by: Thomas Egerer <
[email protected]
>
Signed-off-by: Steffen Klassert <
[email protected]
>
Acked-by: Herbert Xu <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/xfrm/xfrm_state.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_state.c
b/net/xfrm/xfrm_state.c
index eb96ce52f1789dd881116e76a08169189b50f02c..220ebc05c7afc6b602785f6e402d44098cc0bd8d 100644
(file)
--- a/
net/xfrm/xfrm_state.c
+++ b/
net/xfrm/xfrm_state.c
@@
-1268,7
+1268,7
@@
struct xfrm_state * xfrm_state_migrate(struct xfrm_state *x,
return xc;
error:
-
kfree
(xc);
+
xfrm_state_put
(xc);
return NULL;
}
EXPORT_SYMBOL(xfrm_state_migrate);