mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
net_sockif.c: add rmutex init to SOCK_CTRL
fix the issue where acquiring the lock gets stuck due to the sconn lock not being initialized. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user