linux/drivers/net/dsa/realtek
Luiz Angelo Daros de Luca 442ecdc83d net: dsa: realtek: use devm_mutex_init for l2_lock
With CONFIG_DEBUG_MUTEXES enabled, mutex_destroy() needs to be called
before the lock is discarded. Use devm_mutex_init() instead so the
cleanup is handled automatically.

Fixes: 336e3e4a1a ("net: dsa: realtek: rtl8365mb: add FDB support")
Reviewed-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com>
Link: https://patch.msgid.link/20260726-realtek_mutext-v2-4-5d62ba998791@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-07-29 18:42:27 -07:00
..
Kconfig net: dsa: rtl8366rb: don't prompt users for LED control 2025-03-04 11:54:06 +01:00
Makefile net: dsa: realtek: rtl8365mb: add FDB support 2026-06-09 19:35:42 -07:00
realtek-mdio.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
realtek-mdio.h net: dsa: realtek: convert variants into real drivers 2024-02-12 10:42:16 +00:00
realtek-smi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
realtek-smi.h net: dsa: realtek: convert variants into real drivers 2024-02-12 10:42:16 +00:00
realtek.h net: dsa: realtek: rtl8365mb: add bridge port flags 2026-06-09 19:35:42 -07:00
rtl83xx.c net: dsa: realtek: use devm_mutex_init for l2_lock 2026-07-29 18:42:27 -07:00
rtl83xx.h net: dsa: realtek: rtl8365mb: add bridge port flags 2026-06-09 19:35:42 -07:00
rtl8365mb_l2.c net: dsa: realtek: rtl8365mb: add FDB support 2026-06-09 19:35:42 -07:00
rtl8365mb_l2.h net: dsa: realtek: rtl8365mb: add FDB support 2026-06-09 19:35:42 -07:00
rtl8365mb_main.c net: dsa: realtek: rtl8365mb: use devm_mutex_init for mib_lock 2026-07-29 18:42:27 -07:00
rtl8365mb_table.c net: dsa: realtek: rtl8365mb: add table lookup interface 2026-06-09 19:35:41 -07:00
rtl8365mb_table.h net: dsa: realtek: rtl8365mb: add table lookup interface 2026-06-09 19:35:41 -07:00
rtl8365mb_vlan.c net: dsa: realtek: rtl8365mb: add VLAN support 2026-06-09 19:35:42 -07:00
rtl8365mb_vlan.h net: dsa: realtek: rtl8365mb: add VLAN support 2026-06-09 19:35:42 -07:00
rtl8366-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rtl8366rb-leds.c net: dsa: realtek: fix memory leak in rtl8366rb_setup_led() 2026-06-24 17:46:18 -07:00
rtl8366rb.c net: dsa: realtek: Use %pM format specifier for MAC addresses 2026-06-04 18:12:45 -07:00
rtl8366rb.h net: dsa: rtl8366rb: Fix compilation problem 2025-02-24 09:14:42 +00:00