Skip to content

Commit c7dadb6

Browse files
Automatic merge of 'fixes-test' into merge-test (2026-04-02 13:12)
2 parents a2f7734 + 328335a commit c7dadb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/powerpc/kernel/dma-iommu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ bool arch_dma_unmap_sg_direct(struct device *dev, struct scatterlist *sg,
6767
}
6868
bool arch_dma_alloc_direct(struct device *dev)
6969
{
70-
if (dev->dma_ops_bypass)
70+
if (dev->dma_ops_bypass && dev->bus_dma_limit)
7171
return true;
7272

7373
return false;
7474
}
7575

7676
bool arch_dma_free_direct(struct device *dev, dma_addr_t dma_handle)
7777
{
78-
if (!dev->dma_ops_bypass)
78+
if (!dev->dma_ops_bypass || !dev->bus_dma_limit)
7979
return false;
8080

8181
return is_direct_handle(dev, dma_handle);

0 commit comments

Comments
 (0)