summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2015-08-14 16:24:23 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-08-18 04:30:38 +0200
commitc1ae632ad2608d0214291a64ca719f900ffef14b (patch)
treed3d985c647c448e6ac9e493cc48c3bd23a2eb13d /drivers/crypto
parentcrypto: vmx - Fixing GHASH Key issue on little endian (diff)
downloadlinux-c1ae632ad2608d0214291a64ca719f900ffef14b.tar.xz
linux-c1ae632ad2608d0214291a64ca719f900ffef14b.zip
crypto: qat - Don't move data inside output buffer
Change memcpy to memmove because the copy is done within the same buffer. Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/qat/qat_common/qat_asym_algs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/qat_asym_algs.c b/drivers/crypto/qat/qat_common/qat_asym_algs.c
index fe352a6a1630..e87f51023ba4 100644
--- a/drivers/crypto/qat/qat_common/qat_asym_algs.c
+++ b/drivers/crypto/qat/qat_common/qat_asym_algs.c
@@ -145,7 +145,7 @@ static void qat_rsa_cb(struct icp_qat_fw_pke_resp *resp)
}
if (areq->dst_len != req->ctx->key_sz)
- memcpy(areq->dst, ptr, areq->dst_len);
+ memmove(areq->dst, ptr, areq->dst_len);
akcipher_request_complete(areq, err);
}