summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHoria Geanta <horia.geanta@freescale.com>2014-07-11 15:34:48 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2014-07-23 21:28:43 +0800
commit71c65f7c90a176877ad1aa87b752217db61148a8 (patch)
tree59d0ff66c8c2e2f55b27bb97920dc31779e31590 /drivers/crypto
parenta2ac287e9eaec1f105631fa847b1e9208d117a00 (diff)
downloadop-kernel-dev-71c65f7c90a176877ad1aa87b752217db61148a8.zip
op-kernel-dev-71c65f7c90a176877ad1aa87b752217db61148a8.tar.gz
crypto: caam - fix typo in dma_mapping_error
dma_mapping_error checks for an incorrect DMA address: s/ctx->sh_desc_enc_dma/ctx->sh_desc_dec_dma Signed-off-by: Horia Geanta <horia.geanta@freescale.com> Acked-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/caamalg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c
index 64c606d..31f2e10 100644
--- a/drivers/crypto/caam/caamalg.c
+++ b/drivers/crypto/caam/caamalg.c
@@ -786,7 +786,7 @@ static int ablkcipher_setkey(struct crypto_ablkcipher *ablkcipher,
ctx->sh_desc_dec_dma = dma_map_single(jrdev, desc,
desc_bytes(desc),
DMA_TO_DEVICE);
- if (dma_mapping_error(jrdev, ctx->sh_desc_enc_dma)) {
+ if (dma_mapping_error(jrdev, ctx->sh_desc_dec_dma)) {
dev_err(jrdev, "unable to map shared descriptor\n");
return -ENOMEM;
}
OpenPOWER on IntegriCloud