mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
netlink: Fix bugs in nlmsg_end() conversions.
Commit 053c095a82 ("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 <[email protected]>
Reported-by: Scott Feldman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
27c0013285
commit
7b46a644a4
6 changed files with 11 additions and 14 deletions
|
|
@ -4213,7 +4213,7 @@ static int inet6_dump_addr(struct sk_buff *skb, struct netlink_callback *cb,
|
|||
goto cont;
|
||||
|
||||
if (in6_dump_addrs(idev, skb, cb, type,
|
||||
s_ip_idx, &ip_idx) <= 0)
|
||||
s_ip_idx, &ip_idx) < 0)
|
||||
goto done;
|
||||
cont:
|
||||
idx++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue