crypto: nx - add offset to nx_build_sg_lists()
[firefly-linux-kernel-4.4.55.git] / drivers / crypto / nx / nx-aes-gcm.c
index 74feee10f943aa0acd87b6b9fb15c194e6f4787f..c2d6f76e3677ef9277b1d4a1446d90bd2bc2dad3 100644 (file)
@@ -226,7 +226,7 @@ static int gcm_aes_nx_crypt(struct aead_request *req, int enc)
 
        csbcpb->cpb.aes_gcm.bit_length_data = nbytes * 8;
 
-       rc = nx_build_sg_lists(nx_ctx, &desc, req->dst, req->src, nbytes,
+       rc = nx_build_sg_lists(nx_ctx, &desc, req->dst, req->src, nbytes, 0,
                               csbcpb->cpb.aes_gcm.iv_or_cnt);
        if (rc)
                goto out;