[PATCH v2] netlink: fixup regression in RTM_GETADDR

2018-12-30 Thread baloo
From: Arthur Gautier This commit fixes a regression in AF_INET/RTM_GETADDR and AF_INET6/RTM_GETADDR. Before this commit, the kernel would stop dumping addresses once the first skb was full and end the stream with NLMSG_DONE(-EMSGSIZE). The error shouldn't be sent back to netlink_dump so the call

[PATCH] netlink: fixup regression in RTM_GETADDR

2018-12-30 Thread baloo
From: Arthur Gautier This commit fixes a regression in AF_INET/RTM_GETADDR and AF_INET6/RTM_GETADDR. The AF_UNSPEC/RTM_GETADDR was not affected by this as rtnl_dump_all would just hide the errno. Before this commit, the kernel would stop dumping addresses once the first skb was full and end the