netlink: Fix bugs in nlmsg_end() conversions.
authorDavid S. Miller <davem@davemloft.net>
Mon, 19 Jan 2015 04:36:08 +0000 (23:36 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jan 2015 04:36:08 +0000 (23:36 -0500)
commit7b46a644a407f9f2f1c8f7b2af157c79af55b49e
tree5db384821399a6e07abd70a61cc0afd454144e27
parent27c00132852b77b12e625cd6a0ccf43d6bf5795f
netlink: Fix bugs in nlmsg_end() conversions.

Commit 053c095a82cf ("netlink: make nlmsg_end() and genlmsg_end()
void") didn't catch all of the cases where callers were breaking out
on the return value being equal to zero, which they no longer should
when zero means success.

Fix all such cases.

Reported-by: Marcel Holtmann <marcel@holtmann.org>
Reported-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c
net/core/rtnetlink.c
net/decnet/dn_route.c
net/ipv4/devinet.c
net/ipv4/route.c
net/ipv6/addrconf.c