linux-user: Fix sched_getaffinity mask size
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 11 Feb 2018 17:47:04 +0000 (18:47 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 18 Feb 2018 17:52:32 +0000 (18:52 +0100)
commit5fdefcf808a6d70a26e4c536cf0a0acad9b0fff3
tree2be6b405e888714816c58f5eb5c5bde8013e4636
parent2c418853b9ba099b98834000386f54abe9aaec47
linux-user: Fix sched_getaffinity mask size

We properly computed the capped mask size to be put to the application
buffer, but didn't actually used it. Also, we need to return the capped mask
size instead of 0 on success.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180211174704.27441-1-samuel.thibault@ens-lyon.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c