diff options
author | Sean Anderson <sean.anderson@linux.dev> | 2024-10-31 11:45:14 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2024-11-08 14:56:39 +0100 |
commit | d5bbfbad58ec0ccd187282f0e171bc763efa6828 (patch) | |
tree | 20036d46402a80eba644edae18f352ad822dfb8d | |
parent | be164349e173a8e71cd76f17c7ed720813b8d69b (diff) |
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: 68b6dbf1f441 ("dma-mapping: trace more error paths")
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410302243.1wnTlPk3-lkp@intel.com/
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | kernel/dma/mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/mapping.c b/kernel/dma/mapping.c index 636dbb0629a4..cda127027e48 100644 --- a/kernel/dma/mapping.c +++ b/kernel/dma/mapping.c @@ -782,7 +782,7 @@ struct sg_table *dma_alloc_noncontiguous(struct device *dev, size_t size, trace_dma_alloc_sgt(dev, sgt, size, dir, gfp, attrs); debug_dma_map_sg(dev, sgt->sgl, sgt->orig_nents, 1, dir, attrs); } else { - trace_dma_alloc_sgt_err(dev, NULL, 0, size, gfp, dir, attrs); + trace_dma_alloc_sgt_err(dev, NULL, 0, size, dir, gfp, attrs); } return sgt; } |