diff options
| author | Miquel Raynal <[email protected]> | 2018-02-28 20:51:45 +0100 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2018-04-03 12:10:55 +0200 |
| commit | a0a984e14a41bf07f6b3f563a2a8bd22c03aea3a (patch) | |
| tree | 7e25350441ac7648cc159064c15e1cec164d504a /scripts/basic/Makefile | |
| parent | f3aff376892a5af55a090d29e53e10391f886d80 (diff) | |
spl: nand: sunxi: fix second case of modulo by zero error
In the nand_read_buffer() step, the seed is calculated by doing a modulo
by conf->nseeds which is always zero when not using the randomizer (most
of SLC NANDs).
This situation turns out to lead to a run time freeze with certain
toolchains.
Derive this seed only when the randomizer is enabled (and conf->nseeds
logically not zero), exactly like what has been done before with an
identical situation, see commit ea3f750c73e3 ("nand: sunxi: Fix modulo
by zero error").
Signed-off-by: Miquel Raynal <[email protected]>
Acked-by: Boris Brezillon <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Diffstat (limited to 'scripts/basic/Makefile')
0 files changed, 0 insertions, 0 deletions
