Files
u-boot/drivers/spi
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
..
2020-12-18 20:32:21 -07:00
2020-06-11 15:14:04 +05:30
2021-08-02 15:11:40 +08:00
2021-09-13 18:23:13 -04:00
2020-12-18 20:32:21 -07:00
2021-06-25 20:59:45 +05:30
2021-06-30 08:06:30 -04:00