diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-03-24 08:11:58 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-03-24 08:11:58 -0500 |
commit | 56d7a964a5664d3778a0b7a369a5f350d0fe099f (patch) | |
tree | a851ba09087f5291d2c412981efd6605118a9142 /qemu-char.c | |
parent | 24e838b787959eba0bc516d36224df2c6855d02a (diff) | |
parent | 2d6c1ef40f3678ab47a4d14fb5dadaa486bfcda6 (diff) |
Merge remote branch 'amit/for-anthony' into staging
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-char.c b/qemu-char.c index 31c9e79d98..03858d4ef7 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -197,6 +197,10 @@ void qemu_chr_add_handlers(CharDriverState *s, IOEventHandler *fd_event, void *opaque) { + if (!opaque) { + /* chr driver being released. */ + s->assigned = 0; + } s->chr_can_read = fd_can_read; s->chr_read = fd_read; s->chr_event = fd_event; |