KVM: properly check max PIC pin in irq route setup
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 12 Jan 2010 18:42:09 +0000 (16:42 -0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 25 Jan 2010 14:26:38 +0000 (12:26 -0200)
commitd72118cecabbb76b96b77107a50c74d1bb36c0c1
treebb000f670a2d60ddca4439723debd2321b1738ca
parentf1d1c309f35e9b0fb961cffd70fbd04f450ec47c
KVM: properly check max PIC pin in irq route setup

Otherwise memory beyond irq_states[16] might be accessed.

Noticed by Juan Quintela.

Cc: stable@kernel.org
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/irq_comm.c