net: use netdev_lock to protect netdev_txnotify_dev

since the type of sconn lock is rmutex, there is no need to release
sconn lock before TX

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2025-11-14 17:53:20 +08:00
committed by Xiang Xiao
parent eb5c8f4e9c
commit d377f6b788
20 changed files with 42 additions and 42 deletions
+2
View File
@@ -154,7 +154,9 @@ static void tcp_timer_expiry(FAR void *arg)
{
tcp_conn_list_unlock();
conn->timeout = true;
netdev_lock(conn->dev);
netdev_txnotify_dev(conn->dev);
netdev_unlock(conn->dev);
return;
}
}