]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGuangyu Sun <guangyu.sun@oracle.com>
Wed, 17 Oct 2012 18:24:23 +0000 (11:24 -0700)
commita941c5abdbe812d4365be053f28d536867ce9c0d
tree3a22f65ef14130a6f67c9ccd2a2159dd6b59a6b0
parentda15839fb6a74a4e3a65ba110d6920be03bf59ae
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>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
net/ipv6/route.c