Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1ae632a authored by Tadeusz Struk's avatar Tadeusz Struk Committed by Herbert Xu
Browse files

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: default avatarTadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 3c5f0ed7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}