]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
xfrm: put policies when reusing pcpu xdst entry
authorFlorian Westphal <fw@strlen.de>
Mon, 11 Dec 2017 17:23:09 +0000 (18:23 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 12 Dec 2017 05:39:05 +0000 (06:39 +0100)
commitd2950278d2d04ff5314abeb38d9c59c4e7c0ee53
tree9c9313f9c950711842fa6a2dc0d0745d831ac575
parent732706afe1cc46ef48493b3d2b69c98f36314ae4
xfrm: put policies when reusing pcpu xdst entry

We need to put the policies when re-using the pcpu xdst entry, else
this leaks the reference.

Fixes: ec30d78c14a813db39a647b6a348b428 ("xfrm: add xdst pcpu cache")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c