diff options
author | Cong Wang <amwang@redhat.com> | 2011-11-25 23:14:17 +0800 |
---|---|---|
committer | Cong Wang <xiyou.wangcong@gmail.com> | 2012-03-20 21:48:16 +0800 |
commit | f0dfc0b0b7f3d961da8a98bcfccc8be9107a848b (patch) | |
tree | 41cd58ad3ed1a96381984ba8047d9887b951f1cb /crypto/shash.c | |
parent | 8fd75e1216e0ba601a746177e6c102d5593b572f (diff) | |
download | op-kernel-dev-f0dfc0b0b7f3d961da8a98bcfccc8be9107a848b.zip op-kernel-dev-f0dfc0b0b7f3d961da8a98bcfccc8be9107a848b.tar.gz |
crypto: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'crypto/shash.c')
-rw-r--r-- | crypto/shash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index 91009127..21fc12e 100644 --- a/crypto/shash.c +++ b/crypto/shash.c @@ -281,10 +281,10 @@ int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc) if (nbytes < min(sg->length, ((unsigned int)(PAGE_SIZE)) - offset)) { void *data; - data = crypto_kmap(sg_page(sg), 0); + data = kmap_atomic(sg_page(sg)); err = crypto_shash_digest(desc, data + offset, nbytes, req->result); - crypto_kunmap(data, 0); + kunmap_atomic(data); crypto_yield(desc->flags); } else err = crypto_shash_init(desc) ?: @@ -420,9 +420,9 @@ static int shash_compat_digest(struct hash_desc *hdesc, struct scatterlist *sg, desc->flags = hdesc->flags; - data = crypto_kmap(sg_page(sg), 0); + data = kmap_atomic(sg_page(sg)); err = crypto_shash_digest(desc, data + offset, nbytes, out); - crypto_kunmap(data, 0); + kunmap_atomic(data); crypto_yield(desc->flags); goto out; } |