diff options
| author | Christoph Hellwig <[email protected]> | 2019-11-19 16:38:58 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2019-11-20 19:31:41 +0000 |
| commit | 68a33b1794665ba8a1d1ef1d3bfcc7c587d380a6 (patch) | |
| tree | fa623a6dfd451c161630422aafd0bec2fe486285 /tools/bpf/bpftool/prog.c | |
| parent | dma-direct: don't check swiotlb=force in dma_direct_map_resource (diff) | |
| download | kernel-68a33b1794665ba8a1d1ef1d3bfcc7c587d380a6.tar.gz kernel-68a33b1794665ba8a1d1ef1d3bfcc7c587d380a6.zip | |
dma-direct: exclude dma_direct_map_resource from the min_low_pfn check
The valid memory address check in dma_capable only makes sense when mapping
normal memory, not when using dma_map_resource to map a device resource.
Add a new boolean argument to dma_capable to exclude that check for the
dma_map_resource case.
Fixes: b12d66278dd6 ("dma-direct: check for overflows on 32 bit DMA addresses")
Reported-by: Marek Szyprowski <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Acked-by: Marek Szyprowski <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
