crypto: nx - add offset to nx_build_sg_lists()
[firefly-linux-kernel-4.4.55.git] / drivers / crypto / nx / nx-aes-ecb.c
index 77dbe084ba4168b1ca42fbedfe3ada9b9c9a19c1..fe0d803ed233e3b5c387e38d81642d290f358c29 100644 (file)
@@ -85,7 +85,7 @@ static int ecb_aes_nx_crypt(struct blkcipher_desc *desc,
        else
                NX_CPB_FDM(csbcpb) &= ~NX_FDM_ENDE_ENCRYPT;
 
-       rc = nx_build_sg_lists(nx_ctx, desc, dst, src, nbytes, NULL);
+       rc = nx_build_sg_lists(nx_ctx, desc, dst, src, nbytes, 0, NULL);
        if (rc)
                goto out;