]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 08:58:53 +0000 (10:58 +0200)
commite650c91e40cadeda58d864933307b9ebde995671
treed7e62d165fcf9bb938ab93ddfdabf8231db88e6d
parent9da9d29dc9fd65fb0b98a20b20ecdcccb0c0f163
mmc: mvsdio: Fix dma_unmap_sg() nents value

commit 8ab2f1c35669bff7d7ed1bb16bf5cc989b3e2e17 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/mvsdio.c