KVM: Fix off-by-one in overflow check of KVM_ASSIGN_SET_MSIX_NR
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 11 Jun 2011 10:23:55 +0000 (12:23 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:18 +0000 (13:16 +0300)
commit9f3191aec595ef9f3c80bc96664fd7aef57ef5be
tree53be5ad0a1b677fa9a43bd8b2c22e1c5bad76a54
parent1dda606c5f94b14a8f36c220d1d8844bab68a720
KVM: Fix off-by-one in overflow check of KVM_ASSIGN_SET_MSIX_NR

KVM_MAX_MSIX_PER_DEV implies that up to that many MSI-X entries can be
requested. But the kernel so far rejected already the upper limit.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/assigned-dev.c