mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 07:35:47 +00:00
Linux returns success if pwrite64() or pread64() are called with a zero length NULL buffer, but QEMU was returning -TARGET_EFAULT. This is the same bug that we fixed in commit58cfa6c2e6
for the write syscall, and long before that in38d840e679
for the read syscall. Fixes: https://bugs.launchpad.net/qemu/+bug/1810433 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190108184900.9654-1-peter.maydell@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu> (cherry picked from commit2bd3f8998e
) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>