]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7d3dc7d1d775e5ee1255b64eea113090174bc66
tree73745636f1b9cab69eb2738f84f4b0d4cb36db5f
parent2a537465c37b8e599f44a8ef97e126a63c1708d2
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