android_kernel_motorola_sm6375/drivers/mmc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mikko Rapeli b9a7339ae4 mmc: core: Avoid negative index with array access
commit cf55a7acd1ed38afe43bba1c8a0935b51d1dc014 upstream.

Commit 4d0c8d0aef63 ("mmc: core: Use mrq.sbc in close-ended ffu") assigns
prev_idata = idatas[i - 1], but doesn't check that the iterator i is
greater than zero. Let's fix this by adding a check.

Fixes: 4d0c8d0aef63 ("mmc: core: Use mrq.sbc in close-ended ffu")
Link: https://lore.kernel.org/all/[email protected]/
Cc: [email protected]
Signed-off-by: Mikko Rapeli <[email protected]>
Reviewed-by: Avri Altman <[email protected]>
Tested-by: Francesco Dolcini <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2024-04-13 12:51:31 +02:00
..
core mmc: core: Avoid negative index with array access 2024-04-13 12:51:31 +02:00
host mmc: tmio: avoid concurrent runs of mmc_request_done() 2024-04-13 12:51:25 +02:00
Kconfig
Makefile