Patch "kvm: x86: memset whole irq_eoi" has been added to the 3.18-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
kvm: x86: memset whole irq_eoi
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
kvm-x86-memset-whole-irq_eoi.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
8678654e3c7ad7b0f4beb03fa89691279cba71f9Mon Sep 17 00:00:00 2001
From: Jiri Slaby <[email protected]>
Date: Thu, 13 Oct 2016 17:45:20 +0200
Subject: kvm: x86: memset whole irq_eoi
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Jiri Slaby <[email protected]>
commit 8678654e3c7ad7b0f4beb03fa89691279cba71f9 upstream.
gcc 7 warns:arch/x86/kvm/ioapic.c: In function 'kvm_ioapic_reset':arch/x86/kvm/ioapic.c:597:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
And it is right. Memset whole array using sizeof operator.
--- virt/kvm/ioapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
virt/kvm/ioapic.c +1 -1
@@ -610,7 +610,7 @@ static void kvm_ioapic_reset(struct kvm_ ioapic->ioregsel =0 ; ioapic->irr =0 ; ioapic->id =0 ; -memset (ioapic->irq_eoi,0x00 ,IOAPIC_NUM_PINS ); +memset (ioapic->irq_eoi,0x00 ,sizeof (ioapic->irq_eoi));rtc_irq_eoi_tracking_reset (ioapic);update_handled_vectors (ioapic); }
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/kvm-x86-memset-whole-irq_eoi.patch