]> Git Repo - qemu.git/commit - linux-user/flatload.c
linux-user: Fix error handling in flatload.c target_pread()
authorPeter Maydell <[email protected]>
Tue, 12 Jul 2016 12:02:15 +0000 (13:02 +0100)
committerRiku Voipio <[email protected]>
Wed, 21 Sep 2016 11:27:19 +0000 (14:27 +0300)
commite5a869ed569a97fa676e9827952629086ec41f4e
tree178c04b6899a262e02c08a44ed829ca9f4873ed6
parentf9757b1d9649cb739ecf544c7137c0885281f6e8
linux-user: Fix error handling in flatload.c target_pread()

The flatload.c target_pread() function is supposed to return
0 on success or negative host errnos; however it wasn't
checking lock_user() for failure or returning the errno from
the pread() call. Fix these problems (the first of which is
noted by Coverity).

Signed-off-by: Peter Maydell <[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
linux-user/flatload.c
This page took 0.023873 seconds and 4 git commands to generate.