From: Daniel Borkmann Date: Fri, 2 Aug 2013 09:32:43 +0000 (+0200) Subject: net: rtm_to_ifaddr: free ifa if ifa_cacheinfo processing fails X-Git-Tag: v3.11-rc4~5^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=446266b0c742a2c9ee8f0dce759a0117bce58a86;p=pandora-kernel.git net: rtm_to_ifaddr: free ifa if ifa_cacheinfo processing fails Commit 5c766d642 ("ipv4: introduce address lifetime") leaves the ifa resource that was allocated via inet_alloc_ifa() unfreed when returning the function with -EINVAL. Thus, free it first via inet_free_ifa(). Signed-off-by: Daniel Borkmann Reviewed-by: Jiri Pirko Signed-off-by: David S. Miller --- Reading git-diff-tree failed