diff options
| author | Max Reitz <mreitz@redhat.com> | 2014-11-18 11:23:04 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2014-11-18 12:08:59 +0100 |
| commit | 39411cf3c316de0fe3cbb9585774bacfe3bd8efd (patch) | |
| tree | a63dda7bee86b7377056493dcbe6e837f035f135 /hw/intc/omap_intc.c | |
| parent | 867678530240ed7a4aaf647df08be98bebd3b1f0 (diff) | |
| download | focaccia-qemu-39411cf3c316de0fe3cbb9585774bacfe3bd8efd.tar.gz focaccia-qemu-39411cf3c316de0fe3cbb9585774bacfe3bd8efd.zip | |
block/raw-posix: Fix preallocating write() loop
write() may write less bytes than requested; in this case, the number of bytes written is returned. This is the byte count we should be subtracting from the number of bytes still to be written, and not the byte count we requested to write. Reported-by: László Érsek <lersek@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/intc/omap_intc.c')
0 files changed, 0 insertions, 0 deletions