]> Pileus Git - ~andy/linux/commit
KVM: x86: drop parameter validation in ioapic/pic
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Aug 2012 16:20:28 +0000 (19:20 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 15 Aug 2012 01:35:22 +0000 (22:35 -0300)
commit28a6fdabb3ea775d3d707afd9d2728b3ced2c34d
tree13e8ec656afd83c2a8064256668ae665c81d4912
parentdbcb4e798072d114fe68813f39a9efd239ab99c0
KVM: x86: drop parameter validation in ioapic/pic

We validate irq pin number when routing is setup, so
code handling illegal irq # in pic and ioapic on each injection
is never called.
Drop it, replace with BUG_ON to catch out of bounds access bugs.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/i8259.c
virt/kvm/ioapic.c