diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2011-03-01 23:00:58 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-01 23:00:58 -0800 |
commit | 07df5294a753dfac2cc9f75e6159fc25fdc22149 (patch) | |
tree | f37907c7f82d82131a7167e99fb3d2322c43b74f /net/ipv4 | |
parent | 7f6daa635c28ed686835a4080269e3fdc5a01012 (diff) | |
download | op-kernel-dev-07df5294a753dfac2cc9f75e6159fc25fdc22149.zip op-kernel-dev-07df5294a753dfac2cc9f75e6159fc25fdc22149.tar.gz |
inet: Replace left-over references to inet->cork
The patch to replace inet->cork with cork left out two spots in
__ip_append_data that can result in bogus packet construction.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 68dbe2d..33316b35 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -789,7 +789,7 @@ static int __ip_append_data(struct sock *sk, struct sk_buff_head *queue, struct inet_sock *inet = inet_sk(sk); struct sk_buff *skb; - struct ip_options *opt = inet->cork.opt; + struct ip_options *opt = cork->opt; int hh_len; int exthdrlen; int mtu; @@ -803,7 +803,7 @@ static int __ip_append_data(struct sock *sk, struct sk_buff_head *queue, exthdrlen = transhdrlen ? rt->dst.header_len : 0; length += exthdrlen; transhdrlen += exthdrlen; - mtu = inet->cork.fragsize; + mtu = cork->fragsize; hh_len = LL_RESERVED_SPACE(rt->dst.dev); |