Received: from eggs.gnu.org ([2001:4830:134:3::10]:57863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aB5qx-0000PU-OL for qemu-devel@nongnu.org; Mon, 21 Dec 2015 14:10:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aB5qs-00059o-Kv for qemu-devel@nongnu.org; Mon, 21 Dec 2015 14:10:39 -0500 Date: Tue, 22 Dec 2015 00:40:26 +0530 (IST) From: P J P In-Reply-To: <1450696923-25723-1-git-send-email-marcandre.lureau@redhat.com> Message-ID: References: <1450696923-25723-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH] ivshmem: remove redundant assignment, fix crash with msi=off List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-15?Q?Marc-Andr=E9_Lureau?= Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org +-- On Mon, 21 Dec 2015, marcandre.lureau@redhat.com wrote --+ | 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(IVShmemState *s, | int vector) | { | /* create a event character device based on the passed eventfd */ | - PCIDevice *pdev = PCI_DEVICE(s); | int eventfd = event_notifier_get_fd(n); | CharDriverState *chr; | | - s->msi_vectors[vector].pdev = pdev; | - | chr = qemu_chr_open_eventfd(eventfd); | | if (chr == NULL) { Looks okay. -- Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F