diff options
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index b2e3ab2287ba..5559fea61e87 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -492,7 +492,7 @@ void tcp_v4_send_check(struct sock *sk, int len, struct sk_buff *skb) | |||
492 | skb->csum_offset = offsetof(struct tcphdr, check); | 492 | skb->csum_offset = offsetof(struct tcphdr, check); |
493 | } else { | 493 | } else { |
494 | th->check = tcp_v4_check(len, inet->saddr, inet->daddr, | 494 | th->check = tcp_v4_check(len, inet->saddr, inet->daddr, |
495 | csum_partial((char *)th, | 495 | csum_partial(th, |
496 | th->doff << 2, | 496 | th->doff << 2, |
497 | skb->csum)); | 497 | skb->csum)); |
498 | } | 498 | } |
@@ -726,7 +726,7 @@ static int __tcp_v4_send_synack(struct sock *sk, struct request_sock *req, | |||
726 | th->check = tcp_v4_check(skb->len, | 726 | th->check = tcp_v4_check(skb->len, |
727 | ireq->loc_addr, | 727 | ireq->loc_addr, |
728 | ireq->rmt_addr, | 728 | ireq->rmt_addr, |
729 | csum_partial((char *)th, skb->len, | 729 | csum_partial(th, skb->len, |
730 | skb->csum)); | 730 | skb->csum)); |
731 | 731 | ||
732 | err = ip_build_and_send_pkt(skb, sk, ireq->loc_addr, | 732 | err = ip_build_and_send_pkt(skb, sk, ireq->loc_addr, |