]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix a refcnt leak with peer addr
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 3 Sep 2014 21:59:21 +0000 (23:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 00:13:24 +0000 (17:13 -0700)
commitd166fab6466b275c0728bf3b5eb7a02ce0ddb76a
tree99d8da425d3074968570d56cd4931910df876f21
parent0ff775575cf8ad55d6db6208736d6a5459d3baa1
ipv6: fix a refcnt leak with peer addr

There is no reason to take a refcnt before deleting the peer address route.
It's done some lines below for the local prefix route because
inet6_ifa_finish_destroy() will release it at the end.
For the peer address route, we want to free it right now.

This bug has been introduced by commit
4cf56fd32800 ("ipv6: add support of peer address").

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c