diff options
| author | Michael Ellerman <michael@ellerman.id.au> | 2011-11-13 17:18:59 +0000 |
|---|---|---|
| committer | Alexander Graf <agraf@suse.de> | 2011-11-18 14:22:46 +0100 |
| commit | 57285302af51a8bae334c03e1f8243e935373953 (patch) | |
| tree | 112a22bec76cc4ffe6725241f73b7d22a01a7fc5 /hw/ide/atapi.c | |
| parent | 5435352ce6abfb8a7540ae7d47e981d329120cca (diff) | |
| download | focaccia-qemu-57285302af51a8bae334c03e1f8243e935373953.tar.gz focaccia-qemu-57285302af51a8bae334c03e1f8243e935373953.zip | |
pseries: Check we have a chardev in spapr_vty_init()
If qemu is run like: qemu-system-ppc64 -nodefaults -device spapr-vty We end up in spapr_vty_init() with dev->chardev == NULL. Currently that leads to a segfault because we unconditionally call qemu_chr_add_handlers(). Although we could make that call conditional, I think a spapr-vty without a chardev is basically useless so fail the init. This is similar to what the serial code does for example. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ide/atapi.c')
0 files changed, 0 insertions, 0 deletions