[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/8] chr: check to see if front end has registered a
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 2/8] chr: check to see if front end has registered a read function |
Date: |
Sun, 26 Feb 2012 17:46:29 -0600 |
Signed-off-by: Anthony Liguori <address@hidden>
---
qemu-char.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/qemu-char.c b/qemu-char.c
index 5b2b35e..22bfb29 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -160,7 +160,9 @@ int qemu_chr_be_can_write(CharDriverState *s)
void qemu_chr_be_write(CharDriverState *s, uint8_t *buf, int len)
{
- s->chr_read(s->handler_opaque, buf, len);
+ if (s->chr_read) {
+ s->chr_read(s->handler_opaque, buf, len);
+ }
}
int qemu_chr_fe_get_msgfd(CharDriverState *s)
--
1.7.4.1
- [Qemu-devel] [PATCH 0/8] Add GTK UI to enable basic accessibility (v2), Anthony Liguori, 2012/02/26
- [Qemu-devel] [PATCH 1/8] console: allow VCs to be overridden by UI, Anthony Liguori, 2012/02/26
- [Qemu-devel] [PATCH 2/8] chr: check to see if front end has registered a read function,
Anthony Liguori <=
- [Qemu-devel] [PATCH 4/8] gtk: add virtual console support (v2), Anthony Liguori, 2012/02/26
- [Qemu-devel] [PATCH 3/8] ui: add basic GTK gui (v2), Anthony Liguori, 2012/02/26
- [Qemu-devel] [PATCH 5/8] gtk: add support for input grabbing, Anthony Liguori, 2012/02/26
- [Qemu-devel] [PATCH 6/8] gtk: add support for screen scaling and full screen (v2), Anthony Liguori, 2012/02/26
- [Qemu-devel] [PATCH 7/8] gtk: add translation support, Anthony Liguori, 2012/02/26