mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
tcp: constify tcp_create_openreq_child() socket argument
This method does not touch the listener socket. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
54105f98f5
commit
c28c6f0459
2 changed files with 4 additions and 2 deletions
|
@ -441,7 +441,9 @@ EXPORT_SYMBOL_GPL(tcp_ca_openreq_child);
|
|||
* Actually, we could lots of memory writes here. tp of listening
|
||||
* socket contains all necessary default parameters.
|
||||
*/
|
||||
struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req, struct sk_buff *skb)
|
||||
struct sock *tcp_create_openreq_child(const struct sock *sk,
|
||||
struct request_sock *req,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue