Re: [PATCH] staging: rtl8723bs: Use guards for mutexes

From: Greg Kroah-Hartman

Date: Sun Sep 20 2026 - 01:18:34 EST


On Sat, Sep 19, 2026 at 08:24:13PM +0300, Omer PALA wrote:
> Simplify lock management across the rtl8723bs driver by replacing
> manual spinlock and mutex acquire/release calls with scope-based
> cleanup guards (guard() and scoped_guard()).
>
> This reduces boilerplate code, removes redundant error-path unlock
> logic, and prevents potential lock leaks on early return statements.
>
> Signed-off-by: Omer PALA <palaomer100@xxxxxxxxx>

Please read the email archives for why we don't take patches like this.

thanks,

greg k-h