xfrm: pass extack through to xfrm_init_replay() from xfrm_init_state()

xfrm_init_state() takes an extack parameter but doesn't pass it to
xfrm_init_replay(), so replay-window errors can't be reported via
extack.

Fixes: 231a1744dc ("xfrm: add extack to xfrm_init_state")
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
Antony Antony 2026-10-07 11:35:58 +02:00 committed by Steffen Klassert
parent a46232c697
commit 24bc5e5499

View File

@ -3384,7 +3384,7 @@ int xfrm_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack)
if (err)
return err;
err = xfrm_init_replay(x, NULL);
err = xfrm_init_replay(x, extack);
if (err)
return err;