fix pci net hot-remove
PATCH 1/1 fix pci net hot-remove
Missing brackets, doh.
Signed-off-by Marcelo Tosatti <[email protected]>
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)
Anthony Liguori
AppliedQuoted 2 lines · Marcelo Tosatti
Missing brackets, doh.
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 27 lines
Signed-off-by Marcelo Tosatti <[email protected]>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)