mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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
This commit is contained in:
parent
9c554c1c0b
commit
ceecf1d158
9 changed files with 36 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue