]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
crypto: tegra-aes - bitwise vs logical and
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 20 Aug 2013 08:54:48 +0000 (11:54 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 21 Aug 2013 11:28:07 +0000 (21:28 +1000)
commit5bc357037476bf8d4623ab4ef0d1640b947c4625
tree9abd9c9aa71d823649b4a58a37868c4b832b4d89
parent393e661d6167c1b7444704191ea1d01aa3447894
crypto: tegra-aes - bitwise vs logical and

The bug here is that:

while (eng_busy & (!icq_empty) & dma_busy)

is never true because it's using bitwise instead of logical ANDs.  The
other bitwise AND conditions work as intended but I changed them as well
for consistency.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/tegra-aes.c