From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LcjHl-0002CY-JH for qemu-devel@nongnu.org; Thu, 26 Feb 2009 11:40:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LcjHk-0002C0-Rp for qemu-devel@nongnu.org; Thu, 26 Feb 2009 11:40:33 -0500 Received: from [199.232.76.173] (port=34400 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcjHk-0002Bn-Gy for qemu-devel@nongnu.org; Thu, 26 Feb 2009 11:40:32 -0500 Received: from savannah.gnu.org ([199.232.41.3]:40305 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LcjHk-0006xD-9a for qemu-devel@nongnu.org; Thu, 26 Feb 2009 11:40:32 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LcjHj-0003TD-Kh for qemu-devel@nongnu.org; Thu, 26 Feb 2009 16:40:31 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LcjHj-0003T8-Fc for qemu-devel@nongnu.org; Thu, 26 Feb 2009 16:40:31 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Thu, 26 Feb 2009 16:40:31 +0000 Subject: [Qemu-devel] [6645] fix pci net hot-remove (Marcelo Tosatti) 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 Revision: 6645 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6645 Author: aliguori Date: 2009-02-26 16:40:31 +0000 (Thu, 26 Feb 2009) Log Message: ----------- fix pci net hot-remove (Marcelo Tosatti) Missing brackets, doh. Signed-off-by: Marcelo Tosatti Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/hw/device-hotplug.c Modified: trunk/hw/device-hotplug.c =================================================================== --- trunk/hw/device-hotplug.c 2009-02-26 16:40:19 UTC (rev 6644) +++ trunk/hw/device-hotplug.c 2009-02-26 16:40:31 UTC (rev 6645) @@ -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)