KVM: fix irq_source_id size verification
authorMarcelo Tosatti <mtosatti@redhat.com>
Sun, 18 Oct 2009 01:47:23 +0000 (22:47 -0300)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:19 +0000 (09:32 +0200)
commitcd5a2685de4a642fd0bd763e8c19711ef08dbe27
tree171f7b992801a61aa8655414c19c82a1042a30d4
parent6be7d3062b59af891be7e40c6802350de5f78cef
KVM: fix irq_source_id size verification

find_first_zero_bit works with bit numbers, not bytes.

Fixes

https://sourceforge.net/tracker/?func=detail&aid=2847560&group_id=180599&atid=893831

Reported-by: "Xu, Jiajun" <jiajun.xu@intel.com>
Cc: stable@kernel.org
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/irq_comm.c