]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipv6: release reference of ip6_null_entry's dst entry in __ip6_del_rt
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 19 Sep 2012 19:25:34 +0000 (19:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:38:43 +0000 (05:38 +0900)
commit17de307472bf21479e6d7c35211204b6ea186a7c
treee90915dc70367e2252e35f2af7a9aeea992ceb30
parent2ab08687cf48805c5abd0f9a785e09181eda9492
ipv6: release reference of ip6_null_entry's dst entry in __ip6_del_rt

[ Upstream commit 6825a26c2dc21eb4f8df9c06d3786ddec97cf53b ]

as we hold dst_entry before we call __ip6_del_rt,
so we should alse call dst_release not only return
-ENOENT when the rt6_info is ip6_null_entry.

and we already hold the dst entry, so I think it's
safe to call dst_release out of the write-read lock.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/route.c