From: Gao feng Date: Wed, 19 Sep 2012 19:25:34 +0000 (+0000) Subject: ipv6: release reference of ip6_null_entry's dst entry in __ip6_del_rt X-Git-Tag: v3.2.31~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=242582dfc34fb64481d6466cbf816768356d2494;p=pandora-kernel.git 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 Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed