Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1cfab8d7
Commit
1cfab8d7
authored
Oct 26, 2003
by
Herbert Xu
Committed by
David S. Miller
Oct 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: Fix accidental too many ref drops on policies.
parent
efe5ebcc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_policy.c
+1
-1
net/xfrm/xfrm_state.c
net/xfrm/xfrm_state.c
+1
-0
No files found.
net/xfrm/xfrm_policy.c
View file @
1cfab8d7
...
...
@@ -519,7 +519,6 @@ static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
*
polp
!=
NULL
;
polp
=
&
(
*
polp
)
->
next
)
{
if
(
*
polp
==
pol
)
{
*
polp
=
pol
->
next
;
atomic_dec
(
&
pol
->
refcnt
);
return
pol
;
}
}
...
...
@@ -574,6 +573,7 @@ static struct xfrm_policy *clone_policy(struct xfrm_policy *old, int dir)
write_lock_bh
(
&
xfrm_policy_lock
);
__xfrm_policy_link
(
newp
,
XFRM_POLICY_MAX
+
dir
);
write_unlock_bh
(
&
xfrm_policy_lock
);
xfrm_pol_put
(
newp
);
}
return
newp
;
}
...
...
net/xfrm/xfrm_state.c
View file @
1cfab8d7
...
...
@@ -831,6 +831,7 @@ int xfrm_user_policy(struct sock *sk, int optname, u8 *optval, int optlen)
if
(
err
>=
0
)
{
xfrm_sk_policy_insert
(
sk
,
err
,
pol
);
xfrm_pol_put
(
pol
);
err
=
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment