summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-10-22 19:40:16 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-10-22 19:40:16 +0200
commit6297497ab9f28fffe561d3c2b4acd9d3c520926d (patch)
tree4a337f214b49b701c9925ab1dd9dc253f22daa6f /crypto/tcrypt.c
parent22e580c71505243109c0ce0bea8e709b2f96d704 (diff)
downloadlinux-crypto-6297497ab9f28fffe561d3c2b4acd9d3c520926d.tar.gz
linux-crypto-6297497ab9f28fffe561d3c2b4acd9d3c520926d.zip
[SG] Update crypto/ to sg helpers
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 18d489c8..d741c63a 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -317,7 +317,7 @@ static void test_cipher(char *algo, int enc,
goto out;
}
- q = kmap(sg[0].page) + sg[0].offset;
+ q = kmap(sg_page(&sg[0])) + sg[0].offset;
hexdump(q, cipher_tv[i].rlen);
printk("%s\n",
@@ -390,7 +390,7 @@ static void test_cipher(char *algo, int enc,
temp = 0;
for (k = 0; k < cipher_tv[i].np; k++) {
printk("page %u\n", k);
- q = kmap(sg[k].page) + sg[k].offset;
+ q = kmap(sg_page(&sg[k])) + sg[k].offset;
hexdump(q, cipher_tv[i].tap[k]);
printk("%s\n",
memcmp(q, cipher_tv[i].result + temp,