]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/ipv4/tcp_ipv4.c
[NET]: Fix incorrect sg_mark_end() calls.
[karo-tx-linux.git] / net / ipv4 / tcp_ipv4.c
index d3d8d5dfcee3dc593e956042bc198da965f56f17..eec02b29ffcfb7c71483f8e59816a44c528da02c 100644 (file)
@@ -1083,7 +1083,7 @@ static int tcp_v4_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);