aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/kvmvapic.bin
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-02-17 18:55:33 +0000
committerRiku Voipio <riku.voipio@linaro.org>2014-02-18 16:54:06 +0200
commit501bb4b0cb1debf2b495f0ba3980b97ceca652f5 (patch)
treeabab89c80b5135d4a91e257379de848559dc299c /pc-bios/kvmvapic.bin
parent3a5d30bf272c8db8e16e1e7ad5b8953f08df3e82 (diff)
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 'pc-bios/kvmvapic.bin')
0 files changed, 0 insertions, 0 deletions