aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_user.c
diff options
context:
space:
mode:
authorLeon Romanovsky <[email protected]>2025-02-19 13:50:58 +0000
committerSteffen Klassert <[email protected]>2025-02-21 07:08:15 +0000
commitb6ccf61aa4fda43f7961f2e83433bc6e6b78ab95 (patch)
tree110c29342155915d69053bb5b335cd4746065d23 /net/xfrm/xfrm_user.c
parentxfrm: delay initialization of offload path till its actually requested (diff)
downloadkernel-b6ccf61aa4fda43f7961f2e83433bc6e6b78ab95.tar.gz
kernel-b6ccf61aa4fda43f7961f2e83433bc6e6b78ab95.zip
xfrm: simplify SA initialization routine
SA replay mode is initialized differently for user-space and kernel-space users, but the call to xfrm_init_replay() existed in common path with boolean protection. That caused to situation where we have two different function orders. So let's rewrite the SA initialization flow to have same order for both in-kernel and user-space callers. Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r--net/xfrm/xfrm_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index b5266e0848e8..784a2d124749 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -919,7 +919,7 @@ static struct xfrm_state *xfrm_state_construct(struct net *net,
goto error;
}
- err = __xfrm_init_state(x, false, extack);
+ err = __xfrm_init_state(x, extack);
if (err)
goto error;