]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sctp/auth.c
Update net/ to use sg helpers
[linux-2.6-omap-h63xx.git] / net / sctp / auth.c
index 781810724714aead5a11dce08853a35a82c59946..cbd64b216cce33a5e9a43e5fad24d4683a71a20d 100644 (file)
@@ -726,7 +726,8 @@ void sctp_auth_calculate_hmac(const struct sctp_association *asoc,
 
        /* set up scatter list */
        end = skb_tail_pointer(skb);
-       sg.page = virt_to_page(auth);
+       sg_init_table(&sg, 1);
+       sg_set_page(&sg, virt_to_page(auth));
        sg.offset = (unsigned long)(auth) % PAGE_SIZE;
        sg.length = end - (unsigned char *)auth;