提交 237f259c 编写于 作者: C Cong Wang 提交者: Cong Wang

crypto: remove the second argument of k[un]map_atomic()

Signed-off-by: NCong Wang <amwang@redhat.com>
上级 cfd8005c
......@@ -1731,9 +1731,9 @@ static int ablkcipher_get(void *saddr, unsigned int *srestp, unsigned int offset
while (size) {
copy = min3(srest, dst->length, size);
daddr = kmap_atomic(sg_page(dst), KM_IRQ0);
daddr = kmap_atomic(sg_page(dst));
memcpy(daddr + dst->offset + offset, saddr, copy);
kunmap_atomic(daddr, KM_IRQ0);
kunmap_atomic(daddr);
nbytes -= copy;
size -= copy;
......@@ -1793,17 +1793,17 @@ static void hifn_process_ready(struct ablkcipher_request *req, int error)
continue;
}
saddr = kmap_atomic(sg_page(t), KM_SOFTIRQ0);
saddr = kmap_atomic(sg_page(t));
err = ablkcipher_get(saddr, &t->length, t->offset,
dst, nbytes, &nbytes);
if (err < 0) {
kunmap_atomic(saddr, KM_SOFTIRQ0);
kunmap_atomic(saddr);
break;
}
idx += err;
kunmap_atomic(saddr, KM_SOFTIRQ0);
kunmap_atomic(saddr);
}
hifn_cipher_walk_exit(&rctx->walk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册