aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-25 08:48:16 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-25 08:48:16 +0000
commitb76482e76560345c00e7d6c89199ced204a926d2 (patch)
treed1455f68521553d92c763f5fde33ee6e9583f3e6 /hw
parentef056e439847457a5e64f134b8835e61ff53951b (diff)
Fix buffer mux handling for unconnected serial ports
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3737 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/slavio_serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/slavio_serial.c b/hw/slavio_serial.c
index 9a8e340153..6705d4429a 100644
--- a/hw/slavio_serial.c
+++ b/hw/slavio_serial.c
@@ -475,7 +475,8 @@ static uint32_t slavio_serial_mem_readb(void *opaque, target_phys_addr_t addr)
else
ret = s->rx;
SER_DPRINTF("Read channel %c, ch %d\n", CHN_C(s), ret);
- qemu_chr_accept_input(s->chr);
+ if (s->chr)
+ qemu_chr_accept_input(s->chr);
return ret;
default:
break;