summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/nx/nx-aes-ecb.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2021-06-17 10:00:12 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2021-06-24 08:51:35 +0200
commitb20d9a73a3b2a859d32ae569588557bc47c87a1e (patch)
tree01c74bac18a1245072d7180d0f130176e12de2f4 /drivers/crypto/nx/nx-aes-ecb.c
parentcrypto: nx - Fix RCU warning in nx842_OF_upd_status (diff)
downloadlinux-b20d9a73a3b2a859d32ae569588557bc47c87a1e.tar.xz
linux-b20d9a73a3b2a859d32ae569588557bc47c87a1e.zip
crypto: nx - Fix numerous sparse byte-order warnings
The nx driver started out its life as a BE-only driver. However, somewhere along the way LE support was partially added. This never seems to have been extended all the way but it does trigger numerous warnings during build. This patch fixes all those warnings, but it doesn't mean that the driver will work on LE. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/nx/nx-aes-ecb.c')
-rw-r--r--drivers/crypto/nx/nx-aes-ecb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/nx/nx-aes-ecb.c b/drivers/crypto/nx/nx-aes-ecb.c
index 7a729dc2bc17..502a565074e9 100644
--- a/drivers/crypto/nx/nx-aes-ecb.c
+++ b/drivers/crypto/nx/nx-aes-ecb.c
@@ -86,7 +86,7 @@ static int ecb_aes_nx_crypt(struct skcipher_request *req,
goto out;
atomic_inc(&(nx_ctx->stats->aes_ops));
- atomic64_add(csbcpb->csb.processed_byte_count,
+ atomic64_add(be32_to_cpu(csbcpb->csb.processed_byte_count),
&(nx_ctx->stats->aes_bytes));
processed += to_process;