From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAyfz-0003aQ-6Z for qemu-devel@nongnu.org; Mon, 21 Dec 2015 06:30:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAyfx-0003ce-6U for qemu-devel@nongnu.org; Mon, 21 Dec 2015 06:30:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAyfx-0003ca-1d for qemu-devel@nongnu.org; Mon, 21 Dec 2015 06:30:49 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id B437A14CAD1 for ; Mon, 21 Dec 2015 11:30:48 +0000 (UTC) From: marcandre.lureau@redhat.com Date: Mon, 21 Dec 2015 12:30:38 +0100 Message-Id: <1450697444-30119-3-git-send-email-marcandre.lureau@redhat.com> In-Reply-To: <1450697444-30119-1-git-send-email-marcandre.lureau@redhat.com> References: <1450697444-30119-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 2/8] ivshmem: remove redundant assignment, fix crash with msi=off List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= From: Marc-Andr=C3=A9 Lureau Fix crash when msi=3Dfalse introduced in 660c97ee (msi_vectors is NULL in this case) Signed-off-by: Marc-Andr=C3=A9 Lureau --- hw/misc/ivshmem.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 7d14222..dcfc8cc 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -355,12 +355,9 @@ static CharDriverState* create_eventfd_chr_device(IV= ShmemState *s, int vector) { /* create a event character device based on the passed eventfd */ - PCIDevice *pdev =3D PCI_DEVICE(s); int eventfd =3D event_notifier_get_fd(n); CharDriverState *chr; =20 - s->msi_vectors[vector].pdev =3D pdev; - chr =3D qemu_chr_open_eventfd(eventfd); =20 if (chr =3D=3D NULL) { --=20 2.5.0