From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrZMZ-00089Z-Ta for qemu-devel@nongnu.org; Thu, 20 Nov 2014 16:34:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrZMN-0000Qr-NI for qemu-devel@nongnu.org; Thu, 20 Nov 2014 16:34:03 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:47398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrZMN-0000QO-E9 for qemu-devel@nongnu.org; Thu, 20 Nov 2014 16:33:51 -0500 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 20 Nov 2014 21:33:50 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id E730C17D8043 for ; Thu, 20 Nov 2014 21:34:00 +0000 (GMT) Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sAKLXlkd7995728 for ; Thu, 20 Nov 2014 21:33:47 GMT Received: from d06av10.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sAKLXlZv011011 for ; Thu, 20 Nov 2014 14:33:47 -0700 From: Christian Borntraeger Date: Thu, 20 Nov 2014 22:33:41 +0100 Message-Id: <1416519221-22299-10-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1416519221-22299-1-git-send-email-borntraeger@de.ibm.com> References: <1416519221-22299-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PULL 9/9] coverity/s390x: avoid false positive in kvm_irqchip_add_adapter_route List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Peter Maydell Cc: Christian Borntraeger , qemu-devel Paolo Bonzini reported that Coverity reports an uninitialized pad value. Let's use a designated initializer for kvm_irq_routing_entry to avoid this false positive. This is similar to kvm_irqchip_add_msi_route and other users of kvm_irq_routing_entry. Signed-off-by: Christian Borntraeger --- kvm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm-all.c b/kvm-all.c index b951320..cfd49f0 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1258,7 +1258,7 @@ static int kvm_irqchip_assign_irqfd(KVMState *s, int fd, int rfd, int virq, int kvm_irqchip_add_adapter_route(KVMState *s, AdapterInfo *adapter) { - struct kvm_irq_routing_entry kroute; + struct kvm_irq_routing_entry kroute = {}; int virq; if (!kvm_gsi_routing_enabled()) { -- 1.9.3