diff options
Diffstat (limited to 'net/xfrm/xfrm_algo.c')
-rw-r--r-- | net/xfrm/xfrm_algo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 5ced62c19c63..313d4bed3aa9 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/pfkeyv2.h> | 14 | #include <linux/pfkeyv2.h> |
15 | #include <linux/crypto.h> | 15 | #include <linux/crypto.h> |
16 | #include <linux/scatterlist.h> | ||
16 | #include <net/xfrm.h> | 17 | #include <net/xfrm.h> |
17 | #if defined(CONFIG_INET_AH) || defined(CONFIG_INET_AH_MODULE) || defined(CONFIG_INET6_AH) || defined(CONFIG_INET6_AH_MODULE) | 18 | #if defined(CONFIG_INET_AH) || defined(CONFIG_INET_AH_MODULE) || defined(CONFIG_INET6_AH) || defined(CONFIG_INET6_AH_MODULE) |
18 | #include <net/ah.h> | 19 | #include <net/ah.h> |
@@ -552,7 +553,7 @@ int skb_icv_walk(const struct sk_buff *skb, struct hash_desc *desc, | |||
552 | if (copy > len) | 553 | if (copy > len) |
553 | copy = len; | 554 | copy = len; |
554 | 555 | ||
555 | sg.page = virt_to_page(skb->data + offset); | 556 | sg_set_page(&sg, virt_to_page(skb->data + offset)); |
556 | sg.offset = (unsigned long)(skb->data + offset) % PAGE_SIZE; | 557 | sg.offset = (unsigned long)(skb->data + offset) % PAGE_SIZE; |
557 | sg.length = copy; | 558 | sg.length = copy; |
558 | 559 | ||
@@ -577,7 +578,7 @@ int skb_icv_walk(const struct sk_buff *skb, struct hash_desc *desc, | |||
577 | if (copy > len) | 578 | if (copy > len) |
578 | copy = len; | 579 | copy = len; |
579 | 580 | ||
580 | sg.page = frag->page; | 581 | sg_set_page(&sg, frag->page); |
581 | sg.offset = frag->page_offset + offset-start; | 582 | sg.offset = frag->page_offset + offset-start; |
582 | sg.length = copy; | 583 | sg.length = copy; |
583 | 584 | ||