crypto: msm: fix authdata copy issue in qcedev_sha_req_cb
qcedev_sha_req_cb() is only called by _sha_complete() during sha operation, and will copy byte_count value from authdata array. This array size is two, and only contains two byte_count value that are used for sha operation. So make change to only copy the first two elements from this array. Change-Id: I535f2ec0e358870a9a2163b3c0bf154b2c8d003f Signed-off-by: Zhen Kong <zkong@codeaurora.org>
This commit is contained in:
parent
2eaf14b921
commit
8997378a37
|
@ -300,8 +300,6 @@ void qcedev_sha_req_cb(void *cookie, unsigned char *digest,
|
|||
if (authdata) {
|
||||
handle->sha_ctxt.auth_data[0] = auth32[0];
|
||||
handle->sha_ctxt.auth_data[1] = auth32[1];
|
||||
handle->sha_ctxt.auth_data[2] = auth32[2];
|
||||
handle->sha_ctxt.auth_data[3] = auth32[3];
|
||||
}
|
||||
|
||||
tasklet_schedule(&pdev->done_tasklet);
|
||||
|
|
Loading…
Reference in New Issue