mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
ringbuf: fix chr_write return value
It should return the number of written bytes. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20161022095318.17775-4-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ba60e727b0
commit
5c936a83c3
1 changed files with 1 additions and 1 deletions
|
@ -3328,7 +3328,7 @@ static int ringbuf_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ringbuf_chr_read(CharDriverState *chr, uint8_t *buf, int len)
|
static int ringbuf_chr_read(CharDriverState *chr, uint8_t *buf, int len)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue