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:
zhanghongyu
2025-09-23 10:36:07 +08:00
committed by Xiang Xiao
parent 9bcd640c49
commit 7662ce6d51
+4 -1
View File
@@ -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