kernel/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
.. .. @@ -105,7 +105,7 @@ 105 105 unsigned int ivsize = crypto_skcipher_ivsize(tfm); 106 106 struct sun8i_ss_flow *sf = &ss->flows[rctx->flow]; 107 107 int i = 0; 108 - u32 a;108 + dma_addr_t a;109 109 int err; 110 110 111 111 rctx->ivlen = ivsize; .. .. @@ -132,7 +132,7 @@ 132 132 } 133 133 rctx->p_iv[i] = a; 134 134 /* we need to setup all others IVs only in the decrypt way */ 135 - if (rctx->op_dir & SS_ENCRYPTION)135 + if (rctx->op_dir == SS_ENCRYPTION)136 136 return 0; 137 137 todo = min(len, sg_dma_len(sg)); 138 138 len -= todo;