diff options
| author | Peter Maydell | 2014-02-17 19:55:33 +0100 |
|---|---|---|
| committer | Riku Voipio | 2014-02-18 15:54:06 +0100 |
| commit | 501bb4b0cb1debf2b495f0ba3980b97ceca652f5 (patch) | |
| tree | abab89c80b5135d4a91e257379de848559dc299c /include/exec/exec-all.h | |
| parent | linux-user/signal.c: Don't pass sigaction uninitialised sa_flags (diff) | |
| download | qemu-501bb4b0cb1debf2b495f0ba3980b97ceca652f5.tar.gz qemu-501bb4b0cb1debf2b495f0ba3980b97ceca652f5.tar.xz qemu-501bb4b0cb1debf2b495f0ba3980b97ceca652f5.zip | |
linux-user: Fix error handling in lock_iovec()
In lock_iovec() if lock_user() failed we were doing an unlock_user
but not a free(vec), which is the wrong way round. We were also
assuming that free() and unlock_user() don't touch errno, which
is not guaranteed. Fix both these problems.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions
