Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7abab7b9 authored by Mike Rapoport's avatar Mike Rapoport Committed by David S. Miller
Browse files

net/ipv6: stop leaking percpu memory in fib6 info



The fib6_info_alloc() function allocates percpu memory to hold per CPU
pointers to rt6_info, but this memory is never freed. Fix it.

Fixes: a64efe14 ("net/ipv6: introduce fib6_info struct and helpers")
Signed-off-by: default avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Reviewed-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 49b538e7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -196,6 +196,8 @@ void fib6_info_destroy_rcu(struct rcu_head *head)
				*ppcpu_rt = NULL;
			}
		}

		free_percpu(f6i->rt6i_pcpu);
	}

	lwtstate_put(f6i->fib6_nh.nh_lwtstate);