]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipvs: do not leak dest after get from dest trash
authorJulian Anastasov <ja@ssi.bg>
Thu, 30 Apr 2026 07:44:16 +0000 (10:44 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 May 2026 23:52:55 +0000 (01:52 +0200)
commitfbe1e01e818ee6db86ff947599bf0bea96de7e71
tree866a24d67c474704e943ff7eabcb91f4e65dd934
parentd493d9de1c21313cf62be0f6e1a4d48385fa7beb
ipvs: do not leak dest after get from dest trash

Sashiko warns about leaked dest if ip_vs_start_estimator()
fails in ip_vs_add_dest(). Add ip_vs_trash_put_dest() to
put back the dest into dest trash.

Link: https://sashiko.dev/#/patchset/20260428175725.72050-1-ja%40ssi.bg
Fixes: 705dd3444081 ("ipvs: use kthreads for stats estimation")
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_ctl.c