|
@@ -1073,7 +1073,7 @@ static int aead_perform(struct aead_request *req, int encrypt,
|
|
req_ctx->hmac_virt = dma_pool_alloc(buffer_pool, flags,
|
|
req_ctx->hmac_virt = dma_pool_alloc(buffer_pool, flags,
|
|
&crypt->icv_rev_aes);
|
|
&crypt->icv_rev_aes);
|
|
if (unlikely(!req_ctx->hmac_virt))
|
|
if (unlikely(!req_ctx->hmac_virt))
|
|
- goto free_buf_src;
|
|
|
|
|
|
+ goto free_buf_dst;
|
|
if (!encrypt) {
|
|
if (!encrypt) {
|
|
scatterwalk_map_and_copy(req_ctx->hmac_virt,
|
|
scatterwalk_map_and_copy(req_ctx->hmac_virt,
|
|
req->src, cryptlen, authsize, 0);
|
|
req->src, cryptlen, authsize, 0);
|
|
@@ -1088,10 +1088,10 @@ static int aead_perform(struct aead_request *req, int encrypt,
|
|
BUG_ON(qmgr_stat_overflow(SEND_QID));
|
|
BUG_ON(qmgr_stat_overflow(SEND_QID));
|
|
return -EINPROGRESS;
|
|
return -EINPROGRESS;
|
|
|
|
|
|
-free_buf_src:
|
|
|
|
- free_buf_chain(dev, req_ctx->src, crypt->src_buf);
|
|
|
|
free_buf_dst:
|
|
free_buf_dst:
|
|
free_buf_chain(dev, req_ctx->dst, crypt->dst_buf);
|
|
free_buf_chain(dev, req_ctx->dst, crypt->dst_buf);
|
|
|
|
+free_buf_src:
|
|
|
|
+ free_buf_chain(dev, req_ctx->src, crypt->src_buf);
|
|
crypt->ctl_flags = CTL_FLAG_UNUSED;
|
|
crypt->ctl_flags = CTL_FLAG_UNUSED;
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|