Files
twx-linux/net/ipv4
Arnaldo Carvalho de Melo 248059edc6 TCP: Fix minisock tcp_create_openreq_child() typo.
On 2/28/07, KOVACS Krisztian <hidden@balabit.hu> wrote:
>
>   Hi,
>
>   While reading TCP minisock code I've found this suspiciously looking
> code fragment:
>
> - 8< -
> struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req, struct sk_buff *skb)
> {
>         struct sock *newsk = inet_csk_clone(sk, req, GFP_ATOMIC);
>
>         if (newsk != NULL) {
>                 const struct inet_request_sock *ireq = inet_rsk(req);
>                 struct tcp_request_sock *treq = tcp_rsk(req);
>                 struct inet_connection_sock *newicsk = inet_csk(sk);
>                 struct tcp_sock *newtp;
> - 8< -
>
>   The above code initializes newicsk to inet_csk(sk), isn't that supposed
> to be inet_csk(newsk)?  As far as I can tell this might leave
> icsk_ack.last_seg_size zero even if we do have received data.

Good catch!

David, please apply the attached patch.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2007-03-09 10:50:32 -08:00
..
2006-12-02 21:21:17 -08:00
2006-12-02 21:21:17 -08:00
2006-12-07 08:39:25 -08:00
2006-12-07 08:39:25 -08:00
2006-12-02 21:21:17 -08:00
2006-12-07 08:39:25 -08:00
2006-10-25 23:04:12 -07:00
2007-01-25 13:35:06 -08:00
2007-03-09 10:50:26 -08:00
2006-12-02 21:31:51 -08:00