linux-user: add missing return in netlink switch statement
PATCH 1/1 linux-user: add missing return in netlink switch statement
Reported-by Peter Maydell <[email protected]>
Signed-off-by Laurent Vivier <[email protected]>
--- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+)
linux-user/syscall.c +1 -0
@@ -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
Quoted 19 lines · Laurent Vivier
Reported-by Peter Maydell <[email protected]>Signed-off-by Laurent Vivier <[email protected]>--- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+)linux-user/syscall.c +1
-1@@ -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
Reviewed-by Peter Maydell <[email protected]>
thanks
-- PMM