Re: [PATCH net-next] net: dsa: realtek: rtl8365mb: use devm_mutex_init
From: Qingfang Deng
Date: Sat Jul 18 2026 - 22:42:01 EST
Hi Luiz,
On 7/18/2026 1:59 PM, Luiz Angelo Daros de Luca wrote:
mutex_destroy() is needed while debugging mutex. Instead of calling it
directly on driver .remove(), just use devm.
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@xxxxxxxxx>
---
drivers/net/dsa/realtek/rtl8365mb_main.c | 15 ++++++++++++---
drivers/net/dsa/realtek/rtl83xx.c | 14 +++++++++++---
2 files changed, 23 insertions(+), 6 deletions(-)
As you're fixing a missing teardown, and the two files were introduced at different times, you should split your patch into two (one for each file), re-target your series to the "net" tree, and add a Fixes tag respectively.
Best regards,
Qingfang