Skip to content

mmc: Fix dma_map_sg error check

Jack Wang linux-amlogic linux-arm-kernel linux-mips linux-mmc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mmc: meson-mx-sdhc: Fix error check for dma_map_sgdrivers/mmc/host/meson-mx-sdhc-mmc.c+2 -21 reply
2/2mmc: jz4740_mmc: Fix error check for dma_map_sgdrivers/mmc/host/jz4740_mmc.c+2 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPaul CercueilMartin Blumenstingl
1/2R-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] mmc: Fix dma_map_sg error check

Hi, all,

While working on a bugfix on RTRS[1], I noticed there are quite a few other drivers have the same problem, due to the fact dma_map_sg return 0 on error, not like most of the cases, return negative value for error.

I "grep -A 5 dma_map_sg' in kernel tree, and audit/fix the one I feel is buggy, hence this patchset. As suggested by Christoph Hellwig, I now send the patches per subsystem, this is for mmc subsystem.

Thanks!

[1] https://lore.kernel.org/linux-rdma/[email protected]/T/#t

Jack Wang (2):
mmc: meson-mx-sdhc: Fix error check for dma_map_sg
mmc: jz4740_mmc: Fix error check for dma_map_sg

 drivers/mmc/host/jz4740_mmc.c        | 4 ++--
 drivers/mmc/host/meson-mx-sdhc-mmc.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.34.1