]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: constify tcp_openreq_init_rwin()
authorEric Dumazet <edumazet@google.com>
Fri, 25 Sep 2015 14:39:09 +0000 (07:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 20:00:36 +0000 (13:00 -0700)
commitc37e7a4bf4ca0089bf0f2966c40f88f66eca25e9
tree9e165bbd7f65719fa9f1330fe33edfa3f49b3e67
parent964b3b71183ad2c9d0799ee0bb57a12601e76412
tcp: constify tcp_openreq_init_rwin()

Soon, listener socket wont be locked when tcp_openreq_init_rwin()
is called. We need to read socket fields once, as their value
could change under us.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_minisocks.c