diff --git a/net/socket/net_sockif.c b/net/socket/net_sockif.c index cb7c74ce29a..cb4d62493cb 100644 --- a/net/socket/net_sockif.c +++ b/net/socket/net_sockif.c @@ -71,7 +71,10 @@ static const struct sock_intf_s g_ctrl_sockif = ctrl_close /* si_close */ }; -static struct socket_conn_s g_ctrl_conn; +static struct socket_conn_s g_ctrl_conn = +{ + .s_lock = NXRMUTEX_INITIALIZER, +}; /**************************************************************************** * Private Functions