diff options
| author | Christoph Hellwig <[email protected]> | 2019-01-04 17:31:48 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2019-01-05 07:28:29 +0000 |
| commit | 8270f3a11ceef64bdb0ab141180e8d2f17c619ec (patch) | |
| tree | 15e02d8bce01367246670de4ff4c533ea9d46244 /tools/perf/util/python.c | |
| parent | x86/amd_gart: fix unmapping of non-GART mappings (diff) | |
| download | kernel-8270f3a11ceef64bdb0ab141180e8d2f17c619ec.tar.gz kernel-8270f3a11ceef64bdb0ab141180e8d2f17c619ec.zip | |
dma-direct: fix DMA_ATTR_NO_KERNEL_MAPPING for remapped allocations
We need to return a dma_addr_t even if we don't have a kernel mapping.
Do so by consolidating the phys_to_dma call in a single place and jump
to it from all the branches that return successfully.
Fixes: bfd56cd60521 ("dma-mapping: support highmem in the generic remap allocator")
Reported-by: Liviu Dudau <[email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: Liviu Dudau <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions
