mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
net: net_check_clients() runs too early to see -device, fix
Call it right after -device devices get created. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7f76abe1c9
commit
668680f75f
3 changed files with 4 additions and 3 deletions
4
net.c
4
net.c
|
@ -1275,7 +1275,7 @@ void net_cleanup(void)
|
|||
}
|
||||
}
|
||||
|
||||
static void net_check_clients(void)
|
||||
void net_check_clients(void)
|
||||
{
|
||||
VLANState *vlan;
|
||||
|
||||
|
@ -1323,8 +1323,6 @@ int net_init_clients(void)
|
|||
return -1;
|
||||
}
|
||||
|
||||
net_check_clients();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue