On Tue, Sep 14, 2021 at 05:21:48AM +0200, Marek Vasut wrote:
> 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: 38b0852b0ea ("spi: cadence-qspi: Add support for octal DTR flashes")
> Signed-off-by: Marek Vasut <[email protected]>
> Cc: Jagan Teki <[email protected]>
> Cc: Vignesh R <[email protected]>
> Cc: Pratyush Yadav <[email protected]>Applied to u-boot/master, thanks! -- Tom
signature.asc
Description: PGP signature

