]> git.ipfire.org Git - thirdparty/linux.git/commit
xfrm: ipcomp: Free destination pages on acomp errors
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 6 May 2026 13:23:28 +0000 (21:23 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 11 May 2026 08:34:35 +0000 (10:34 +0200)
commit7dbac7680eb629b3b4dc7e98c34f943b8814c0c8
tree44b3eb74b296184d99b6871d8392e7850bfed91d
parent7e2a4f7ca0952820731ef7bdadfc9a9e9d3571b4
xfrm: ipcomp: Free destination pages on acomp errors

Move the out_free_req label up by a couple of lines so that the
allocated dst SG list gets freed on error as well as success.

Fixes: eb2953d26971 ("xfrm: ipcomp: Use crypto_acomp interface")
Cc: stable@kernel.org
Reported-by: Yuan Tan <yuantan098@gmail.com>
Reported-by: Yifan Wu <yifanwucs@gmail.com>
Reported-by: Juefei Pu <tomapufckgml@gmail.com>
Reported-by: Xin Liu <bird@lzu.edu.cn>
Reported-by: Yilin Zhu <zylzyl2333@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_ipcomp.c