X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=crypto%2Ftcrypt.c;h=d741c63af42c501f357eb9d666de461265d9c6e8;hb=5f48b338cd28f4095697a174d7e3e72084aca893;hp=18d489c8b935f3834fdf72743d1e1ef0e2acd457;hpb=92633b72d18ca4f25de1f28e436a882159491e7e;p=powerpc.git diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 18d489c8b9..d741c63af4 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,