]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfrm: drop SA reference in xfrm_state_update if dir doesn't match
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 16 Oct 2025 10:39:12 +0000 (12:39 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 21 Oct 2025 08:42:42 +0000 (10:42 +0200)
commit8d2a2a49c30f67a480fa9ed25e08436a446f057e
treec2e235d4e4a701f9046f53745f6b31b77a0bcc7e
parentf584239a9ed25057496bf397c370cc5163dde419
xfrm: drop SA reference in xfrm_state_update if dir doesn't match

We're not updating x1, but we still need to put() it.

Fixes: a4a87fa4e96c ("xfrm: Add Direction to the SA in or out")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c