Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
edba1f10
Commit
edba1f10
authored
21 years ago
by
Herbert Xu
Committed by
David S. Miller
21 years ago
Browse files
Options
Download
Email Patches
Plain Diff
[XFRM]: Fix OOPS in xfrm_state_update.
parent
41f0321d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
net/xfrm/xfrm_state.c
net/xfrm/xfrm_state.c
+2
-1
No files found.
net/xfrm/xfrm_state.c
View file @
edba1f10
...
...
@@ -485,7 +485,8 @@ int xfrm_state_update(struct xfrm_state *x)
err
=
-
EINVAL
;
spin_lock_bh
(
&
x1
->
lock
);
if
(
likely
(
x1
->
km
.
state
==
XFRM_STATE_VALID
))
{
memcpy
(
x1
->
encap
,
x
->
encap
,
sizeof
(
*
x1
->
encap
));
if
(
x
->
encap
&&
x1
->
encap
)
memcpy
(
x1
->
encap
,
x
->
encap
,
sizeof
(
*
x1
->
encap
));
memcpy
(
&
x1
->
lft
,
&
x
->
lft
,
sizeof
(
x1
->
lft
));
x1
->
km
.
dying
=
0
;
err
=
0
;
...
...
This diff is collapsed.
Click to expand it.
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