]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: release neighbor upon dst destruction
authorRomain KUNTZ <r.kuntz@ipflavors.com>
Mon, 18 Feb 2013 02:36:24 +0000 (02:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Feb 2013 19:57:29 +0000 (14:57 -0500)
commit1c0b8c5340ae63105f121fc4529333ae1adb5b5b
tree0b7591c785c66a99273fd7b9ec45b05defe17cd4
parent88ee3b7ced000ae7cd3c6395d13ff434ac7d4330
xfrm: release neighbor upon dst destruction

Neighbor is cloned in xfrm6_fill_dst but seems to never be released.
Neighbor entry should be released when XFRM6 dst entry is destroyed
in xfrm6_dst_destroy, otherwise references may be kept forever on
the device pointed by the neighbor entry.

I may not have understood all the subtleties of XFRM & dst so I would
be happy to receive comments on this patch.

Signed-off-by: Romain Kuntz <r.kuntz@ipflavors.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_policy.c