KVM: fix irq_source_id size verification
commit310c1a04807321c666445292db4b9147f1174c08
authorMarcelo Tosatti <mtosatti@redhat.com>
Sun, 18 Oct 2009 01:47:23 +0000 (17 22:47 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:03:36 +0000 (18 14:03 -0800)
tree25bac381975ad1c377816627e2a1dc59aa1e6ca9
parentfff7d05d83d41107dd1c8740cfbfd50fe3ce87e8
KVM: fix irq_source_id size verification

commit cd5a2685de4a642fd0bd763e8c19711ef08dbe27 upstream.

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>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
virt/kvm/irq_comm.c