Commit 5c6cf233 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Make sure to reject all PCI DAC dma masks.

parent 9bce1ae3
...@@ -825,5 +825,8 @@ int pci_dma_supported(struct pci_dev *pdev, u64 device_mask) ...@@ -825,5 +825,8 @@ int pci_dma_supported(struct pci_dev *pdev, u64 device_mask)
} }
} }
if (device_mask >= (1UL << 32UL))
return 0;
return (device_mask & dma_addr_mask) == dma_addr_mask; return (device_mask & dma_addr_mask) == dma_addr_mask;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment