Message ID | 20180525081754.29506-5-laurent@vivier.eu |
---|---|
State | Accepted |
Commit | 309786cfd8f701182eee845fd98e30fd5addd046 |
Headers | show |
Series | [PULL,01/13] linux-user: Assert on bad type in thunk_type_align() and thunk_type_size() | expand |
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index dd77f86ea2..d02c16bbc6 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1848,6 +1848,7 @@ static inline abi_long host_to_target_cmsg(struct target_msghdr *target_msgh, /* Payload types which need a different size of payload on * the target must adjust tgt_len here. */ + tgt_len = len; switch (cmsg->cmsg_level) { case SOL_SOCKET: switch (cmsg->cmsg_type) { @@ -1857,8 +1858,8 @@ static inline abi_long host_to_target_cmsg(struct target_msghdr *target_msgh, default: break; } + break; default: - tgt_len = len; break; }