Bastien Curutchet 16198eef11 mmc: davinci_mmc: Prevent transmitted data size from exceeding sgm's length
No check is done on the size of the data to be transmiited. This causes
a kernel panic when this size exceeds the sg_miter's length.

Limit the number of transmitted bytes to sgm->length.

Cc: stable@vger.kernel.org
Fixes: ed01d210fd91 ("mmc: davinci_mmc: Use sg_miter for PIO")
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20240711081838.47256-2-bastien.curutchet@bootlin.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2024-07-11 17:48:54 +02:00
..
2024-03-05 13:03:52 +01:00
2024-03-13 11:07:37 -07:00
2024-04-02 12:21:38 +02:00
2024-02-13 13:40:56 +01:00
2024-02-13 13:40:56 +01:00
2024-04-09 16:17:37 +02:00
2023-11-03 12:04:34 +01:00