diff options
author | Anton Nefedov | 2017-07-06 14:08:52 +0200 |
---|---|---|
committer | Paolo Bonzini | 2017-07-14 11:04:33 +0200 |
commit | 3065070153ef4235659d821c0d6fa28fd0630c57 (patch) | |
tree | fa9b9f1378874f727da8faa466946b6ca5d38f23 /hw/char/terminal3270.c | |
parent | char: forbid direct chardevice access for hotswap devices (diff) | |
download | qemu-3065070153ef4235659d821c0d6fa28fd0630c57.tar.gz qemu-3065070153ef4235659d821c0d6fa28fd0630c57.tar.xz qemu-3065070153ef4235659d821c0d6fa28fd0630c57.zip |
char: avoid chardevice direct access
frontends should avoid accessing CharDriver struct where possible
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1499342940-56739-6-git-send-email-anton.nefedov@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/char/terminal3270.c')
-rw-r--r-- | hw/char/terminal3270.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/terminal3270.c b/hw/char/terminal3270.c index 5adf95b6e5..28f599111d 100644 --- a/hw/char/terminal3270.c +++ b/hw/char/terminal3270.c @@ -239,7 +239,7 @@ static int write_payload_3270(EmulatedCcw3270Device *dev, uint8_t cmd, return 0; } } - if (!qemu_chr_fe_get_driver(&t->chr)) { + if (!qemu_chr_fe_backend_connected(&t->chr)) { /* We just say we consumed all data if there's no backend. */ return count; } |