tcp: tcp_sendmsg() wrong access to sk_route_caps
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 28 Nov 2011 00:27:47 +0000 (00:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Nov 2011 23:58:24 +0000 (18:58 -0500)
commit690e99c4ba73fc18643b38fa032022b8758ad4d3
tree73745636f1b9cab69eb2738f84f4b0d4cb36db5f
parent8b7ff200010600ef7cd9d002f9f8f97edfc7578e
tcp: tcp_sendmsg() wrong access to sk_route_caps

Now sk_route_caps is u64, its dangerous to use an integer to store
result of an AND operator. It wont work if NETIF_F_SG is moved on the
upper part of u64.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c