aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2015-10-25 23:11:43 +0200
committerThomas Gleixner <[email protected]>2015-10-26 14:59:36 +0900
commit298a96c12b2d8fd845ae0c2c21c0a1c0b470f99e (patch)
tree7fc0663def81b3edfb2bba1871a46fa74519d932 /tools/perf/scripts/python/Perf-Trace-Util
parent32b88194f71d6ae7768a29f87fbba454728273ee (diff)
x86/dma-mapping: Fix arch_dma_alloc_attrs() oops with NULL dev
Commit 6894258eda2f broke drivers that pass NULL as the device pointer to dma_alloc. The reason is that arch_dma_alloc_attrs() now calls dma_alloc_coherent_gfp_flags() which in turn calls dma_alloc_coherent_mask(), where the device pointer is dereferenced unconditionally. Fix things by moving the ISA DMA fallback device assignment before the call to dma_alloc_coherent_gfp_flags(). Fixes: 6894258eda2f ("dma-mapping: consolidate dma_{alloc,free}_{attrs,coherent}") Reported-and-tested-by: Meelis Roos <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Cc: Christoph Hellwig <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions