Skip to contentSkip to conversation

linux-user: add missing return in netlink switch statement

PATCH In review Laurent Vivier 2 participants 2 messages Jun 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: add missing return in netlink switch statement

---
 linux-user/syscall.c | 1 +
 1 file changed, 1 insertion(+)
linux-user/syscall.c +1 -0
index 71ccbd9..0b937ca 100644
@@ -1688,6 +1688,7 @@ static abi_long target_to_host_for_each_nlmsg(struct nlmsghdr *nlh,
             struct nlmsgerr *e = NLMSG_DATA(nlh);
             e->error = tswap32(e->error);
             tswap_nlmsghdr(&e->msg);
+            return 0;
         }
         default:
             ret = target_to_host_nlmsg(nlh);
Signature · 1 line
2.5.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Laurent Vivier
---
 linux-user/syscall.c | 1 +
 1 file changed, 1 insertion(+)
linux-user/syscall.c +1 -1
index 71ccbd9..0b937ca 100644
@@ -1688,6 +1688,7 @@ static abi_long target_to_host_for_each_nlmsg(struct nlmsghdr *nlh,
             struct nlmsgerr *e = NLMSG_DATA(nlh);
             e->error = tswap32(e->error);
             tswap_nlmsghdr(&e->msg);
+            return 0;
         }
         default:
             ret = target_to_host_nlmsg(nlh);
--
Quoted 1 line

2.5.5

thanks
-- PMM