mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 03:43:37 +08:00
Don't assign a static string to NICInfo::model
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
32a8e14a0b
commit
3cd67992f5
2
vl.c
2
vl.c
@ -2599,7 +2599,7 @@ static int usb_device_add(const char *devname, int is_hotplug)
|
||||
|
||||
if (net_client_init(NULL, "nic", p) < 0)
|
||||
return -1;
|
||||
nd_table[nic].model = "usb";
|
||||
nd_table[nic].model = qemu_strdup("usb");
|
||||
dev = usb_net_init(&nd_table[nic]);
|
||||
} else if (!strcmp(devname, "bt") || strstart(devname, "bt:", &p)) {
|
||||
dev = usb_bt_init(devname[2] ? hci_init(p) :
|
||||
|
Loading…
Reference in New Issue
Block a user