Jan Beulich
2010-Oct-13 14:36 UTC
[Xen-devel] [PATCH] x86/msi: fix inverted masks in c/s 22182:68cc3c514a0a
Signed-off-by: Jan Beulich <jbeulich@novell.com> --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -549,14 +549,14 @@ static u64 read_pci_mem_bar(u8 bus, u8 s return 0; if ( (addr & PCI_BASE_ADDRESS_MEM_TYPE_MASK) == PCI_BASE_ADDRESS_MEM_TYPE_64 ) { - addr &= ~PCI_BASE_ADDRESS_MEM_MASK; + addr &= PCI_BASE_ADDRESS_MEM_MASK; if ( ++bir >= limit ) return 0; return addr | ((u64)pci_conf_read32(bus, slot, func, PCI_BASE_ADDRESS_0 + bir * 4) << 32); } - return addr & ~PCI_BASE_ADDRESS_MEM_MASK; + return addr & PCI_BASE_ADDRESS_MEM_MASK; } /** _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel