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>
This commit is contained in:
parent
3c5f0ed78e
commit
c1ae632ad2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue