Files
u-boot/drivers
Marek Vasut c2e0363571 mtd: cqspi: Fix division by zero
Both dummy.nbytes and dummy.buswidth may be zero. By not checking
the later, it is possible to trigger division by zero and a crash.
This does happen with tiny SPI NOR framework in SPL. Fix this by
adding the check and returning zero dummy bytes in such a case.

Fixes: 38b0852b0e ("spi: cadence-qspi: Add support for octal DTR flashes")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Vignesh R <vigneshr@ti.com>
Cc: Pratyush Yadav <p.yadav@ti.com>
[trini: Drop Pratyush's RB as his requested changes weren't made as
        Marek disagreed]
2021-10-04 08:51:14 -04:00
..
2021-07-21 10:27:35 -06:00
2021-09-13 18:23:13 -04:00
2021-09-13 18:23:13 -04:00
2021-09-14 00:02:10 +01:00
2021-09-13 18:23:13 -04:00
2021-09-13 18:23:13 -04:00
2021-09-14 09:07:18 -04:00
2021-10-04 08:51:14 -04:00
2021-09-13 18:23:13 -04:00
2021-08-09 14:46:51 +02:00