net: fix compile error of leaking kmemleak.h header

net/core/sysctl_net_core.c: In function sysctl_core_init
net/core/sysctl_net_core.c:259: error: implicit declaration of function
memleak_not_leak

with same error in net/ipv4/route.c

Change-Id: I75c3150f8cdce606efc8a472af32e4e933ac4e0d
Signed-off-by: Shan Wei <davidshan@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 7426a5645f3d18daec1f7d6a24b529ec7286b800
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
net/core:Remove memleak reports by kmemleak_not_leak.

These allocation's life cycle is through out the system is alive. So,
ignore false positives.

Change-Id: Id33e27f4a993e66ec5a6373862fc06bfcd57f664
Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 798ec84d45754403571d6387396236e877965c5a
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
rtnetlink: fix error return code in rtnl_link_fill()

Fix to return a negative error code from the error handling case
instead of 0(possible overwrite to 0 by ops->fill_xstats call),
as returned elsewhere in this function.

Change-Id: Ia985101d5b14755297c8fb62d0133e3da20c66e3
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: fcca143d696092110ae1e361866576804fe887f3
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>