From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaJA6-0007M6-8g for qemu-devel@nongnu.org; Thu, 19 Feb 2009 19:22:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaJA3-0007Le-Nt for qemu-devel@nongnu.org; Thu, 19 Feb 2009 19:22:36 -0500 Received: from [199.232.76.173] (port=35277 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaJA3-0007Lb-IX for qemu-devel@nongnu.org; Thu, 19 Feb 2009 19:22:35 -0500 Received: from mx2.redhat.com ([66.187.237.31]:47409) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaJA2-0000V5-Or for qemu-devel@nongnu.org; Thu, 19 Feb 2009 19:22:35 -0500 Date: Thu, 19 Feb 2009 21:21:44 -0300 From: Marcelo Tosatti Message-ID: <20090220002144.GA1489@amt.cnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] fix pci net hot-remove Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori Missing brackets, doh. Signed-off-by: Marcelo Tosatti 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)