projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c5f0ed
)
crypto: qat - Don't move data inside output buffer
author
Tadeusz Struk
<
[email protected]
>
Fri, 14 Aug 2015 14:24:23 +0000
(07:24 -0700)
committer
Herbert Xu
<
[email protected]
>
Tue, 18 Aug 2015 02:30:38 +0000
(10:30 +0800)
Change memcpy to memmove because the copy is done within the same buffer.
Signed-off-by: Tadeusz Struk <
[email protected]
>
Signed-off-by: Herbert Xu <
[email protected]
>
drivers/crypto/qat/qat_common/qat_asym_algs.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/qat/qat_common/qat_asym_algs.c
b/drivers/crypto/qat/qat_common/qat_asym_algs.c
index fe352a6a1630dd6f25b562e8d6d56daea96fd891..e87f51023ba4ef2d8db9640c44adb7d4396bd467 100644
(file)
--- 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)
- mem
cpy
(areq->dst, ptr, areq->dst_len);
+ mem
move
(areq->dst, ptr, areq->dst_len);
akcipher_request_complete(areq, err);
}