提交 9a40611c 编写于 作者: A aliguori

fix pci net hot-remove (Marcelo Tosatti)


Missing brackets, doh.
Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6645 c046a42c-6fe2-441c-8c8c-71466251a162
上级 7a11b22e
......@@ -51,7 +51,7 @@ void destroy_nic(dev_match_fn *match_fn, void *arg)
int i;
NICInfo *nic;
for (i = 0; i < MAX_NICS; i++)
for (i = 0; i < MAX_NICS; i++) {
nic = &nd_table[i];
if (nic->used) {
if (nic->private && match_fn(nic->private, arg)) {
......@@ -64,6 +64,7 @@ void destroy_nic(dev_match_fn *match_fn, void *arg)
net_client_uninit(nic);
}
}
}
}
void destroy_bdrvs(dev_match_fn *match_fn, void *arg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册