mirror of https://github.com/schoebel/mars
net: fix potential recursion over allocation
This commit is contained in:
parent
6caf5ef195
commit
27405674c5
|
@ -212,6 +212,7 @@ void _set_socketopts(struct socket *sock, struct mars_tcp_params *params, bool i
|
|||
}
|
||||
sock->sk->sk_rcvtimeo = sock->sk->sk_sndtimeo = params->tcp_timeout * HZ;
|
||||
sock->sk->sk_reuse = SK_CAN_REUSE;
|
||||
sock->sk->sk_allocation = GFP_NOIO;
|
||||
_setsockopt(sock, SOL_SOCKET, SO_SNDBUFFORCE, params->tcp_window_size);
|
||||
_setsockopt(sock, SOL_SOCKET, SO_RCVBUFFORCE, params->tcp_window_size);
|
||||
#ifdef CONFIG_MARS_IPv4_TOS
|
||||
|
|
Loading…
Reference in New Issue