]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
mmc: mvsdio: Fix dma_unmap_sg() nents value
authorThomas Fourier <fourier.thomas@gmail.com>
Tue, 26 Aug 2025 07:58:08 +0000 (09:58 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 12 Sep 2025 12:04:22 +0000 (14:04 +0200)
commit8ab2f1c35669bff7d7ed1bb16bf5cc989b3e2e17
tree907b62f158b4edc116a753644f11f4b272eed68d
parentd2d7a96b29ea6ab093973a1a37d26126db70c79f
mmc: mvsdio: Fix dma_unmap_sg() nents value

The dma_unmap_sg() functions should be called with the same nents as the
dma_map_sg(), not the value the map function returned.

Fixes: 236caa7cc351 ("mmc: SDIO driver for Marvell SoCs")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mvsdio.c