linux-user: Fix unlock_user() call in return from poll()
commit30cb4cdec79dc2727f562edee36a4f3df4dfc23f
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 25 Feb 2011 10:27:40 +0000 (25 10:27 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 22 Mar 2011 06:46:21 +0000 (22 07:46 +0100)
tree24e9f3d2f7a9e663a094408ffbb7a5a2b83434c8
parentff90d50393e4485e336ec57e157eee0f5d116d91
linux-user: Fix unlock_user() call in return from poll()

Correct the broken attempt to calculate the third argument
to unlock_user() in the code path which unlocked the pollfd
array on return from poll() and ppoll() emulation. (This
only caused a problem if unlock_user() wasn't a no-op, eg
if DEBUG_REMAP is defined.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
linux-user/syscall.c