From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boWqU-0006aw-1S for qemu-devel@nongnu.org; Mon, 26 Sep 2016 10:25:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boWqP-0004r6-22 for qemu-devel@nongnu.org; Mon, 26 Sep 2016 10:25:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boWqO-0004qw-S1 for qemu-devel@nongnu.org; Mon, 26 Sep 2016 10:25:20 -0400 Date: Mon, 26 Sep 2016 15:25:18 +0100 From: Stefan Hajnoczi Message-ID: <20160926142518.GI14950@stefanha-x1.localdomain> References: <20160926052958.10716-1-lma@suse.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zqjkMoGlbUJ91oFe" Content-Disposition: inline In-Reply-To: <20160926052958.10716-1-lma@suse.com> Subject: Re: [Qemu-devel] [PATCH] iothread: check iothread->ctx before aio_context_unref to avoid assertion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lin Ma Cc: qemu-devel@nongnu.org, famz@redhat.com, pbonzini@redhat.com --zqjkMoGlbUJ91oFe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 26, 2016 at 01:29:58PM +0800, Lin Ma wrote: > if iothread->ctx is set to NULL, aio_context_unref triggers the assertion: > g_source_unref: assertion 'source !=3D NULL' failed. > The patch fixes it. >=20 > Signed-off-by: Lin Ma > --- > iothread.c | 3 +++ > 1 file changed, 3 insertions(+) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --zqjkMoGlbUJ91oFe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJX6S/OAAoJEJykq7OBq3PIi0MIAMc9veCe+yV200YeZtIpyKGi irjG+Pq+9GX9Gb97m6g/1waVGsveZIvZ3SzH5SgReCvV4rIMzq8HrUfhP0hkfJA6 mQnIkM48g7G41tNKLjzlsgUDOSqgjjlVqrVrf3fazGu4EagTxyHwLuzDmBx5mKfR dTtWX9+sLegdRg7Q84+yPfRld18hDKrHBYIxB3oEayrGUU4DyGONXt4GrytZ+SIJ a0giF2IfzgA0fMpCp5IsvL6JBc5mL+EEYaY+22tla3u6WCUhEuwfUJ67LmshTRbJ P71PKS7X/7HE5fHMORXK50ic5I84ehzT/dRoxBl9V7LkfC8k0I/pYFC1y5lXltA= =xuoh -----END PGP SIGNATURE----- --zqjkMoGlbUJ91oFe--