diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2015-08-14 07:24:23 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-08-18 10:30:38 +0800 |
commit | c1ae632ad2608d0214291a64ca719f900ffef14b (patch) | |
tree | d3d985c647c448e6ac9e493cc48c3bd23a2eb13d /drivers/crypto | |
parent | 3c5f0ed78e976be705218cad62acf6a68e9d121e (diff) | |
download | talos-obmc-linux-c1ae632ad2608d0214291a64ca719f900ffef14b.tar.gz talos-obmc-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.c | 2 |
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); } |