diff options
author | Antony Antony <antony.antony@secunet.com> | 2022-07-27 17:41:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-31 17:16:36 +0200 |
commit | 4edd868acd23f7c6dc2b14a0be5ca006f5fe6227 (patch) | |
tree | a64cf577f443d2e9e99b62111a882da331e238d7 /net/xfrm | |
parent | 26ad2398fe4984f4f6f930bcb3bc9047fa77265b (diff) | |
download | linux-stable-4edd868acd23f7c6dc2b14a0be5ca006f5fe6227.tar.gz linux-stable-4edd868acd23f7c6dc2b14a0be5ca006f5fe6227.tar.bz2 linux-stable-4edd868acd23f7c6dc2b14a0be5ca006f5fe6227.zip |
xfrm: clone missing x->lastused in xfrm_do_migrate
[ Upstream commit 6aa811acdb76facca0b705f4e4c1d948ccb6af8b ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index b1a04a22166f..15132b080614 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -1591,6 +1591,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; |