diff options
author | Avi Kivity <avi@redhat.com> | 2013-03-19 12:36:57 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-05 10:16:42 -0700 |
commit | 16df76518569ae25da4c3750ad4bab65ef2aa900 (patch) | |
tree | 881b92a93dac26ed3d3912741d765e62ed14641e /sound/pci/cs5530.c | |
parent | d1cc80b94858666cc48467e8e166ccf389551b5d (diff) | |
download | kernel_samsung_smdk4412-16df76518569ae25da4c3750ad4bab65ef2aa900.tar.gz kernel_samsung_smdk4412-16df76518569ae25da4c3750ad4bab65ef2aa900.tar.bz2 kernel_samsung_smdk4412-16df76518569ae25da4c3750ad4bab65ef2aa900.zip |
KVM: Fix buffer overflow in kvm_set_irq()
commit f2ebd422f71cda9c791f76f85d2ca102ae34a1ed upstream.
kvm_set_irq() has an internal buffer of three irq routing entries, allowing
connecting a GSI to three IRQ chips or on MSI. However setup_routing_entry()
does not properly enforce this, allowing three irqchip routes followed by
an MSI route to overflow the buffer.
Fix by ensuring that an MSI entry is added to an empty list.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/pci/cs5530.c')
0 files changed, 0 insertions, 0 deletions