xiaoxiang781216 commented on code in PR #12419:
URL: https://github.com/apache/nuttx/pull/12419#discussion_r1619087163


##########
net/udp/udp_conn.c:
##########
@@ -816,6 +816,10 @@ int udp_bind(FAR struct udp_conn_s *conn, FAR const struct 
sockaddr *addr)
     }
 #endif
 
+  /* Interrupts must be disabled while access the UDP connection list */
+
+  net_lock();

Review Comment:
   why extend the scope of lock? I can't find the unpaired lock/unlock call



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to