Received: from eggs.gnu.org ([2001:4830:134:3::10]:56528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbOdo-0002hM-2A for qemu-devel@nongnu.org; Tue, 07 Oct 2014 02:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbOdi-0007d8-Fb for qemu-devel@nongnu.org; Tue, 07 Oct 2014 02:53:00 -0400 From: Markus Armbruster References: <1412613225-32676-1-git-send-email-chris.spiegel@cypherpath.com> Date: Tue, 07 Oct 2014 08:52:48 +0200 In-Reply-To: <1412613225-32676-1-git-send-email-chris.spiegel@cypherpath.com> (Chris Spiegel's message of "Mon, 6 Oct 2014 09:33:45 -0700") Message-ID: <87d2a49xrz.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] snapshot: Reset err to NULL to avoid double free List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chris Spiegel Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi , qemu-stable@nongnu.org Copying stable and maintainers. Chris Spiegel writes: > If an error occurs in bdrv_snapshot_delete_by_id_or_name(), "err" is > freed. If "err" is not set to NULL before calling > bdrv_snapshot_delete_by_id_or_name() again, it will not be updated on > error, and will be freed again. > > This can be triggered by starting a VM with at least two drives and then > attempting to delete a non-existent snapshot. > > Signed-off-by: Chris Spiegel Broken in commit a89d89d. With the above sentence added to the commit message: Reviewed-by: Markus Armbruster I checked the commit and the file for similar bugs, didn't find any.