summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-03-23 15:29:48 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-26 14:37:15 +0200
commit12051d82f004024d5d0202279be898c7b38cea56 (patch)
tree18ec0c1714b6b6cfb6df8f39adfd18f332f4b0d1 /HACKING
parent90c558beca0c0ef26db1ed77d1eb8f24a5ea02a1 (diff)
downloadqemu-12051d82f004024d5d0202279be898c7b38cea56.tar.gz
chardev/char-fe: Allow NULL chardev in qemu_chr_fe_init()
All the functions in char-fe.c handle the CharBackend having a NULL Chardev pointer, which means that the backend exists but is not connected to anything. The exception is qemu_chr_fe_init(), which will crash if passed a NULL Chardev pointer argument. This can happen for various boards if they're started with 'nodefaults': arm-softmmu/qemu-system-arm -S -nodefaults -M cubieboard riscv32-softmmu/qemu-system-riscv32 -nodefaults -M sifive_e Make qemu_chr_fe_init() accept a NULL chardev. This allows UART models to handle NULL chardev properties without generally needing to special case them or to manually create a NullChardev. Reported-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20180323152948.27048-1-peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'HACKING')
0 files changed, 0 insertions, 0 deletions