OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b26a9a
)
[XFRM] policy: Replace magic number with XFRM_POLICY_OUT
author
Thomas Graf
<tgraf@suug.ch>
Sat, 25 Aug 2007 20:46:55 +0000
(13:46 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:34 +0000
(16:48 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_policy.c
b/net/xfrm/xfrm_policy.c
index
7012891
..
6ab81b1
100644
(file)
--- a/
net/xfrm/xfrm_policy.c
+++ b/
net/xfrm/xfrm_policy.c
@@
-1477,7
+1477,7
@@
restart:
pol_dead = 0;
xfrm_nr = 0;
- if (sk && sk->sk_policy[
1
]) {
+ if (sk && sk->sk_policy[
XFRM_POLICY_OUT
]) {
policy = xfrm_sk_policy_lookup(sk, XFRM_POLICY_OUT, fl);
if (IS_ERR(policy))
return PTR_ERR(policy);