summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-02-28 11:05:56 -0800
committerDavid S. Miller <davem@davemloft.net>2007-02-28 11:05:56 -0800
commita9948a7e15015e7f2cb602190322b8ebb00c54c8 (patch)
tree7a89652bcd2a53e02c25fc17a8fb9fc60ac1e478 /fs
parent71599cd1c381d1b5f58c35653ac1d3627c6276db (diff)
downloadop-kernel-dev-a9948a7e15015e7f2cb602190322b8ebb00c54c8.zip
op-kernel-dev-a9948a7e15015e7f2cb602190322b8ebb00c54c8.tar.gz
[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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud