summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2016-06-14 15:07:09 +0200
committerRiku Voipio <riku.voipio@linaro.org>2016-06-26 13:17:21 +0300
commit84f34b00c8cccfcefbadc45f68036dea957d2153 (patch)
treea87584d68dac084528826a314ec3fff1af82a1a4 /linux-user
parent9a6309e7faef90f0ce106a500303d3a9eac0d016 (diff)
downloadqemu-84f34b00c8cccfcefbadc45f68036dea957d2153.zip
linux-user: add missing return in netlink switch statement
Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Riku Voipio <riku.voipio@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index b8a0738e5b..33409c01ba 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1692,6 +1692,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);