diff options
| author | Kirill A. Shutemov <[email protected]> | 2023-03-15 11:31:32 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-04-06 02:42:46 +0000 |
| commit | 61883d3c32418f16e35e030ca0cfd5d2de95a649 (patch) | |
| tree | 6c53d37051e0158aba6a03e1f6a7fc8f1fa299a8 /mm/debug_vm_pgtable.c | |
| parent | mm/slub: fix MAX_ORDER usage in calculate_order() (diff) | |
| download | kernel-61883d3c32418f16e35e030ca0cfd5d2de95a649.tar.gz kernel-61883d3c32418f16e35e030ca0cfd5d2de95a649.zip | |
iommu: fix MAX_ORDER usage in __iommu_dma_alloc_pages()
MAX_ORDER is not inclusive: the maximum allocation order buddy allocator
can deliver is MAX_ORDER-1.
Fix MAX_ORDER usage in __iommu_dma_alloc_pages().
Also use GENMASK() instead of hard to read "(2U << order) - 1" magic.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kirill A. Shutemov <[email protected]>
Acked-by: Robin Murphy <[email protected]>
Reviewed-by: Jacob Pan <[email protected]>
Acked-by: Joerg Roedel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/debug_vm_pgtable.c')
0 files changed, 0 insertions, 0 deletions
