mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
net/icmp: post the semaphore if multiple references
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -165,8 +165,9 @@ void icmp_free(FAR struct icmp_conn_s *conn)
|
||||
/* Free the connection */
|
||||
|
||||
dq_addlast(&conn->node, &g_free_icmp_connections);
|
||||
nxsem_post(&g_free_sem);
|
||||
}
|
||||
|
||||
nxsem_post(&g_free_sem);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user