]> git.proxmox.com Git - qemu.git/commit
linux-user: change do_semop to return target errno when unsuccessful
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Thu, 21 Mar 2013 07:57:36 +0000 (07:57 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 19 Apr 2013 07:48:51 +0000 (10:48 +0300)
commitc7128c9fd58ee92cae70c7cd1d53acc529cebbbb
tree603656b9b371f6cc9a063368a32529f1fbd7616c
parent09dada400328d75daf79e3eca1e48e024fec148d
linux-user: change do_semop to return target errno when unsuccessful

do_semop() is called from two places, and one of these fails to convert
return error to target errno when semop fails. This patch changes the
function to always return target errno in case of an unsuccessful call.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c