crypto: lrw - fix rebase error after out of bounds fix
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sun, 30 Sep 2018 19:51:16 +0000 (21:51 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Oct 2018 02:22:48 +0000 (10:22 +0800)
commitfd27b571c9f6cf95ddbdf9de7cf0aa8c8cfe8066
tree60a94e9e832692d11c9af702429dc1cdd2395691
parent5155e118dda982342c2d21ecb292c8cc8b566e8d
crypto: lrw - fix rebase error after out of bounds fix

Due to an unfortunate interaction between commit fbe1a850b3b1
("crypto: lrw - Fix out-of bounds access on counter overflow") and
commit c778f96bf347 ("crypto: lrw - Optimize tweak computation"),
we ended up with a version of next_index() that always returns 127.

Fixes: c778f96bf347 ("crypto: lrw - Optimize tweak computation")
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/lrw.c