diff options
| author | Sabrina Dubroca <sd@queasysnail.net> | 2025-10-16 12:39:15 +0200 |
|---|---|---|
| committer | Steffen Klassert <steffen.klassert@secunet.com> | 2025-10-21 10:42:44 +0200 |
| commit | 7f02285764790e0ff1a731b4187fa3e389ed02c7 (patch) | |
| tree | b3c7cb5d4160b7cfde5890744564d10f431719a1 /net/unix/af_unix.c | |
| parent | 5502bc4746e86bfe91ecbe0ed1ad53cb17673920 (diff) | |
xfrm: call xfrm_dev_state_delete when xfrm_state_migrate fails to add the state
In case xfrm_state_migrate fails after calling xfrm_dev_state_add, we
directly release the last reference and destroy the new state, without
calling xfrm_dev_state_delete (this only happens in
__xfrm_state_delete, which we're not calling on this path, since the
state was never added).
Call xfrm_dev_state_delete on error when an offload configuration was
provided.
Fixes: ab244a394c7f ("xfrm: Migrate offload configuration")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions