Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: rtm_to_ifaddr: free ifa if ifa_cacheinfo processing fails
Commit 5c766d6 ("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 <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information