projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d57f19
)
xfrm: fix a read lock imbalance in make_blackhole
author
Li RongQing
<roy.qing.li@gmail.com>
Mon, 17 Sep 2012 22:40:10 +0000
(22:40 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 18 Sep 2012 20:30:15 +0000
(16:30 -0400)
if xfrm_policy_get_afinfo returns 0, it has already released the read
lock, xfrm_policy_put_afinfo should not be called again.
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c
patch
|
blob
|
blame
|
history
diff --git
a/net/xfrm/xfrm_policy.c
b/net/xfrm/xfrm_policy.c
index ab2ce7d5152d02803e81f149a3b496c738715f2d..387848e900783f6e6862c6d2c0b52ab45bbcfe50 100644
(file)
--- a/
net/xfrm/xfrm_policy.c
+++ b/
net/xfrm/xfrm_policy.c
@@
-1764,7
+1764,7
@@
static struct dst_entry *make_blackhole(struct net *net, u16 family,
if (!afinfo) {
dst_release(dst_orig);
- ret
=
ERR_PTR(-EINVAL);
+ ret
urn
ERR_PTR(-EINVAL);
} else {
ret = afinfo->blackhole_route(net, dst_orig);
}