[PATCH 5.17 268/343] mmc: mmci: stm32: correctly check all elements of sg list