Skip to content

Commit

Permalink
crypto: qat - Don't move data inside output buffer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tadeusz Struk authored and Herbert Xu committed Aug 18, 2015
1 parent 3c5f0ed commit c1ae632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/qat/qat_common/qat_asym_algs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c1ae632

Please sign in to comment.