linux-user: fix emulation of splice syscall
commit17644b362746c400f45b0d2b0a3ce8a52fed13fb
authorAndreas Schwab <schwab@suse.de>
Tue, 10 Mar 2015 16:11:35 +0000 (10 17:11 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Sun, 22 Mar 2015 13:18:51 +0000 (22 15:18 +0200)
tree88f8abf7a31f030b0de1a45e16988ade90ec15c0
parent92bed463d12ab9e1e34cdd44673ab9c4315ad1d2
linux-user: fix emulation of splice syscall

The second and fourth argument are in/out parameters, store them back
after the syscall.  Also, the fourth argument was mishandled, and EFAULT
handling was missing.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c