patch-2.4.0-test12 linux/arch/alpha/kernel/pci_iommu.c
Next file: linux/arch/alpha/kernel/sys_ruffian.c
Previous file: linux/arch/alpha/kernel/pci.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Dec 11 13:46:26 2000
- Orig file:
v2.4.0-test11/linux/arch/alpha/kernel/pci_iommu.c
- Orig date:
Sun Oct 8 10:50:04 2000
diff -u --recursive --new-file v2.4.0-test11/linux/arch/alpha/kernel/pci_iommu.c linux/arch/alpha/kernel/pci_iommu.c
@@ -613,10 +613,10 @@
/* Check that we have a scatter-gather arena that fits. */
hose = pdev ? pdev->sysdata : pci_isa_hose;
arena = hose->sg_isa;
- if (arena && arena->dma_base + arena->size <= mask)
+ if (arena && arena->dma_base + arena->size - 1 <= mask)
return 1;
arena = hose->sg_pci;
- if (arena && arena->dma_base + arena->size <= mask)
+ if (arena && arena->dma_base + arena->size - 1 <= mask)
return 1;
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)