From ceecf1d158d324c61a7ec1ba5de57dbc8a0f8373 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Sun, 18 Jan 2009 14:08:04 +0000 Subject: 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 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6365 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/usb-serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/usb-serial.c') diff --git a/hw/usb-serial.c b/hw/usb-serial.c index a6a756d95..9dd2c072d 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; -- cgit v1.2.3