summaryrefslogtreecommitdiffstats
path: root/hw/usb-serial.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-18 14:08:04 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-18 14:08:04 +0000
commitceecf1d158d324c61a7ec1ba5de57dbc8a0f8373 (patch)
treebb58577711ef3fedae6ebbe731ac4da7f2d85bde /hw/usb-serial.c
parent9c554c1c0b01642c39232489cef8301a7858824d (diff)
downloadhqemu-ceecf1d158d324c61a7ec1ba5de57dbc8a0f8373.zip
hqemu-ceecf1d158d324c61a7ec1ba5de57dbc8a0f8373.tar.gz
add an init function parameter to qemu_chr_open()
And use it for the malta emulation. Fix segfault introduced in revision 6352. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6365 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/usb-serial.c')
-rw-r--r--hw/usb-serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-serial.c b/hw/usb-serial.c
index a6a756d..9dd2c07 100644
--- a/hw/usb-serial.c
+++ b/hw/usb-serial.c
@@ -558,7 +558,7 @@ USBDevice *usb_serial_init(const char *filename)
return NULL;
snprintf(label, sizeof(label), "usbserial%d", index++);
- cdrv = qemu_chr_open(label, filename);
+ cdrv = qemu_chr_open(label, filename, NULL);
if (!cdrv)
goto fail;
s->cs = cdrv;
OpenPOWER on IntegriCloud