Received: from eggs.gnu.org ([2001:4830:134:3::10]:58416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj7oC-0004Zb-MC for qemu-devel@nongnu.org; Tue, 28 Oct 2014 10:31:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj7o7-00034b-V5 for qemu-devel@nongnu.org; Tue, 28 Oct 2014 10:31:40 -0400 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:54905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj7o7-00034M-Lv for qemu-devel@nongnu.org; Tue, 28 Oct 2014 10:31:35 -0400 Received: by mail-lb0-f170.google.com with SMTP id 10so721093lbg.15 for ; Tue, 28 Oct 2014 07:31:34 -0700 (PDT) Date: Tue, 28 Oct 2014 14:31:30 +0000 From: Stefan Hajnoczi Message-ID: <20141028143130.GE22805@stefanha-thinkpad.redhat.com> References: <1412613225-32676-1-git-send-email-chris.spiegel@cypherpath.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Epv4kl9IRBfg3rk" Content-Disposition: inline In-Reply-To: <1412613225-32676-1-git-send-email-chris.spiegel@cypherpath.com> 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: qemu-devel@nongnu.org --4Epv4kl9IRBfg3rk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 06, 2014 at 09:33:45AM -0700, Chris Spiegel wrote: > 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. >=20 > This can be triggered by starting a VM with at least two drives and then > attempting to delete a non-existent snapshot. >=20 > Signed-off-by: Chris Spiegel > --- > savevm.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --4Epv4kl9IRBfg3rk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUT6jCAAoJEJykq7OBq3PIPXwIAMfGTR0yggOP81HvG01YCCbB EtMBn+ApKvGipTPZMIJl3/F17cmohRJxkDzMt5KXf1yxR/BaGrVgT0EjDBI1U/u0 jNmOOPn/DkT5NzGXxSO+URAf2KvmuqrZ83OdmfK+qYt1AStDx2QVDCVtDfB1iHNW NPgU/N/FUkUJA6c8RJq4KSTzMEwTjVyBX8tLm1yOIU8r/sQSsp5JxGvpr6ui2AEn 3PuZj9oeQBGj/I8c1tjbob7GBJXkpSNK7N5aVsD7T+7HTvNfTZp+bBrmOi708NxJ QUbn2m80vI4FwfYh43IRIn5u1dMFx1tiPZmPJW6n9mDPJmwMBnptDafouPlb3jo= =Z4zy -----END PGP SIGNATURE----- --4Epv4kl9IRBfg3rk--