Skip to content

Commit d5bbfba

Browse files
Sean AndersonChristoph Hellwig
authored andcommitted
dma-mapping: fix swapped dir/flags arguments to trace_dma_alloc_sgt_err
trace_dma_alloc_sgt_err was called with the dir and flags arguments swapped. Fix this. Fixes: 68b6dbf ("dma-mapping: trace more error paths") Signed-off-by: Sean Anderson <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Christoph Hellwig <[email protected]>
1 parent be16434 commit d5bbfba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/dma/mapping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ struct sg_table *dma_alloc_noncontiguous(struct device *dev, size_t size,
782782
trace_dma_alloc_sgt(dev, sgt, size, dir, gfp, attrs);
783783
debug_dma_map_sg(dev, sgt->sgl, sgt->orig_nents, 1, dir, attrs);
784784
} else {
785-
trace_dma_alloc_sgt_err(dev, NULL, 0, size, gfp, dir, attrs);
785+
trace_dma_alloc_sgt_err(dev, NULL, 0, size, dir, gfp, attrs);
786786
}
787787
return sgt;
788788
}

0 commit comments

Comments
 (0)