zephyr/subsys/net
Andy Ross bd063d1a9e net/ethernet/bridge: Fix k_mutex initialization
The bridge subsystem was written with a ETH_BRIDGE_INITIALIZER that
assumed it could initialize a k_mutex with a zero-filled initializer.
That never worked.  Unlike semaphores, mutexes have always required a
runtime call to k_mutex_init().  What happened instead is that
k_mutex_un/lock() returned error codes, which were ignored by the code
here.  So no locking was happening.

This was discovered while migrating to zync, where an attempt to
unlock an unlocked mutex is a panic condition (and where zero-filled
initializers are legal, but represent an unfair semaphore and not a
mutex, so deadlock correctly).

Signed-off-by: Andy Ross <andyross@google.com>
2022-10-17 10:13:56 +02:00
..
ip net/route: Add missing lock in net_route_mcast_add() 2022-10-17 10:13:56 +02:00
l2 net/ethernet/bridge: Fix k_mutex initialization 2022-10-17 10:13:56 +02:00
lib net: dns: Always init the resolver 2022-10-14 09:57:09 +02:00
pkt_filter subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
buf.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
CMakeLists.txt
hostname.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
Kconfig net: introduce NET_IP config to efficiently mark conditional code 2022-09-05 14:35:17 +00:00
Kconfig.hostname
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net