From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [PATCH 1/2] virtio: fix memory leak on device removal Date: Thu, 23 Jul 2009 13:56:58 +0930 Message-ID: <200907231356.59681.rusty@rustcorp.com.au> References: <20090721155909.GB3306@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Christian Borntraeger , virtualization@lists.linux-foundation.org, Anthony Liguori , kvm@vger.kernel.org, avi@redhat.com, Carsten Otte , t@redhat.com To: "Michael S. Tsirkin" Return-path: Received: from ozlabs.org ([203.10.76.45]:59145 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788AbZGWE1G (ORCPT ); Thu, 23 Jul 2009 00:27:06 -0400 In-Reply-To: <20090721155909.GB3306@redhat.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 22 Jul 2009 01:29:09 am Michael S. Tsirkin wrote: > Free up msi vector tables. Michael, this papers over the bug, but doesn't actually fix the problem. The problem is that vp_free_vectors() does not do the reverse of vp_request_vectors. If the author (you) can't get it right, what hope the rest of us? Indeed, if you look harder, you'll see another leak caused by this problem, which your patch *didn't* fix. Thanks, Rusty.