patch-2.4.23 linux-2.4.23/arch/sparc64/kernel/pci_iommu.c

Next file: linux-2.4.23/arch/sparc64/kernel/pci_psycho.c
Previous file: linux-2.4.23/arch/sparc64/kernel/pci_common.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/arch/sparc64/kernel/pci_iommu.c linux-2.4.23/arch/sparc64/kernel/pci_iommu.c
@@ -829,5 +829,8 @@
 		}
 	}
 
+	if (device_mask >= (1UL << 32UL))
+		return 0;
+
 	return (device_mask & dma_addr_mask) == dma_addr_mask;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)