]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - crypto/hmac.c
r6040: remove virt_to_bus
[linux-2.6-omap-h63xx.git] / crypto / hmac.c
index 0f05be769c346c71d6ed3a70228d947c4699e50f..a1d016a50e7debd10f6b7030f44d598b6eccedb3 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #include <crypto/algapi.h>
+#include <crypto/scatterwalk.h>
 #include <linux/err.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
@@ -160,7 +161,7 @@ static int hmac_digest(struct hash_desc *pdesc, struct scatterlist *sg,
 
        sg_init_table(sg1, 2);
        sg_set_buf(sg1, ipad, bs);
-       sg_set_page(&sg1[1], (void *) sg, 0, 0);
+       scatterwalk_sg_chain(sg1, 2, sg);
 
        sg_init_table(sg2, 1);
        sg_set_buf(sg2, opad, bs + ds);