net: fix potential recursion over allocation

This commit is contained in:
Thomas Schoebel-Theuer 2023-07-11 13:13:07 +02:00
parent 6caf5ef195
commit 27405674c5
1 changed files with 1 additions and 0 deletions

View File

@ -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