]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: bcm2835: Fix dma_unmap_sg() nents value
authorThomas Fourier <fourier.thomas@gmail.com>
Mon, 30 Jun 2025 09:35:07 +0000 (11:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:53:14 +0000 (08:53 +0200)
commit5bfd0078f7389727e5f281ff8523e755a6041fce
treed0541f74db4167dce2bc5b4d8676326cf02cc5e4
parent4206824af6dd983d4347570e5a9e0f59ac80fb5a
mmc: bcm2835: Fix dma_unmap_sg() nents value

commit ff09b71bf9daeca4f21d6e5e449641c9fad75b53 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: 2f5da678351f ("mmc: bcm2835: Properly handle dmaengine_prep_slave_sg")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250630093510.82871-2-fourier.thomas@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/bcm2835.c