]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/ipv6/tcp_ipv6.c
[NET]: Fix incorrect sg_mark_end() calls.
[karo-tx-linux.git] / net / ipv6 / tcp_ipv6.c
index f1523b82cac194f603f1b743cdd92ae80d55e3a4..4b9032880959421be4d8e08780f58efd38cdb726 100644 (file)
@@ -781,7 +781,7 @@ static int tcp_v6_do_calc_md5_hash(char *md5_hash, struct tcp_md5sig_key *key,
        sg_set_buf(&sg[block++], key->key, key->keylen);
        nbytes += key->keylen;
 
-       sg_mark_end(sg, block);
+       __sg_mark_end(&sg[block - 1]);
 
        /* Now store the hash into the packet */
        err = crypto_hash_init(desc);