From: Shmulik Ladkani Date: Tue, 3 Apr 2012 23:13:00 +0000 (+0000) Subject: ipv6: Fix 'inet6_rtm_getroute' to release 'rt->dst' in case of 'alloc_skb' failure X-Git-Tag: v3.5-rc1~109^2~634 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2173bff5dcff4ca02226978f39648b66a8c3ca1e;p=pandora-kernel.git ipv6: Fix 'inet6_rtm_getroute' to release 'rt->dst' in case of 'alloc_skb' failure In 72331bc [ipv6: Fix RTM_GETROUTE's interpretation of RTA_IIF to be consistent with ipv4] the code of 'inet6_rtm_getroute()' was re-ordered such that the reference to 'rt->dst' is incremented prior skb allocation. Hence, if 'alloc_skb()' fails, must drop a reference from 'rt->dst'. Add the missing 'dst_release()' call. Signed-off-by: Shmulik Ladkani Signed-off-by: David S. Miller --- Reading git-diff-tree failed