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:
Markus Armbruster 2010-02-11 14:44:58 +01:00 committed by Anthony Liguori
parent 7f76abe1c9
commit 668680f75f
3 changed files with 4 additions and 3 deletions

4
net.c
View file

@ -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;
}