qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] fix pci net hot-remove


From: Marcelo Tosatti
Subject: [Qemu-devel] [PATCH] fix pci net hot-remove
Date: Thu, 19 Feb 2009 21:21:44 -0300
User-agent: Mutt/1.5.18 (2008-05-17)

Missing brackets, doh.

Signed-off-by: Marcelo Tosatti <address@hidden>

Index: hw/device-hotplug.c
===================================================================
--- hw/device-hotplug.c (revision 6618)
+++ hw/device-hotplug.c (working copy)
@@ -51,7 +51,7 @@
     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 @@
                 net_client_uninit(nic);
             }
         }
+    }
 }
 
 void destroy_bdrvs(dev_match_fn *match_fn, void *arg)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]