diff options
| author | Peter Maydell | 2014-02-17 19:55:34 +0100 |
|---|---|---|
| committer | Riku Voipio | 2014-02-19 11:29:23 +0100 |
| commit | 69d4c703a549f0630793a67b16a8fc6bc14c8654 (patch) | |
| tree | 4a2a94e97938666365eef461fb19f043f5f1fdc5 /include/exec/exec-all.h | |
| parent | linux-user: Implement BLKPG ioctl (diff) | |
| download | qemu-69d4c703a549f0630793a67b16a8fc6bc14c8654.tar.gz qemu-69d4c703a549f0630793a67b16a8fc6bc14c8654.tar.xz qemu-69d4c703a549f0630793a67b16a8fc6bc14c8654.zip | |
linux-user: Fix error handling in target_to_host_semarray()
Fix two issues in error handling in target_to_host_semarray():
* don't leak the host_array buffer if lock_user fails
* return an error if malloc() fails
v2: added missing * -Riku Voipio
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
