Skip to contentSkip to conversation

fix pci net hot-remove

PATCH Applied Marcelo Tosatti 2 participants 2 messages Feb 20, 2009 – Feb 26, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix pci net hot-remove

Missing brackets, doh.

device-hotplug.c +2 -1
Index: hw/device-hotplug.c
===================================================================
@@ -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)
#1 lore raw
Quoted 2 lines · Marcelo Tosatti

Missing brackets, doh.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 27 lines

Index: hw/device-hotplug.c
===================================================================

device-hotplug.c +2 -1
@@ -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)