projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36d7635
)
xfrm: clone missing x->lastused in xfrm_do_migrate
author
Antony Antony
<antony.antony@secunet.com>
Wed, 27 Jul 2022 15:41:22 +0000
(17:41 +0200)
committer
Steffen Klassert
<steffen.klassert@secunet.com>
Wed, 3 Aug 2022 05:27:37 +0000
(07:27 +0200)
x->lastused was not cloned in xfrm_do_migrate. Add it to clone during
migrate.
Fixes:
80c9abaabf42
("[XFRM]: Extension for dynamic update of endpoint address(es)")
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_state.c
b/net/xfrm/xfrm_state.c
index
ccfb172
..
11d89af
100644
(file)
--- a/
net/xfrm/xfrm_state.c
+++ b/
net/xfrm/xfrm_state.c
@@
-1592,6
+1592,7
@@
static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig,
x->replay = orig->replay;
x->preplay = orig->preplay;
x->mapping_maxage = orig->mapping_maxage;
+ x->lastused = orig->lastused;
x->new_mapping = 0;
x->new_mapping_sport = 0;