summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2015-08-14 07:24:23 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2015-08-18 10:30:38 +0800
commitc1ae632ad2608d0214291a64ca719f900ffef14b (patch)
treed3d985c647c448e6ac9e493cc48c3bd23a2eb13d /drivers
parent3c5f0ed78e976be705218cad62acf6a68e9d121e (diff)
downloadop-kernel-dev-c1ae632ad2608d0214291a64ca719f900ffef14b.zip
op-kernel-dev-c1ae632ad2608d0214291a64ca719f900ffef14b.tar.gz
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')
-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 fe352a6..e87f510 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);
}
OpenPOWER on IntegriCloud