[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zsr01pEW0Y-F1Hbf@mars.bitmath.org>
Date: Sun, 25 Aug 2024 11:09:42 +0200
From: rydberg@...math.se
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: linux-input@...r.kernel.org,
Javier Carrasco <javier.carrasco.cruz@...il.com>,
Erick Archer <erick.archer@...look.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Input: bcm5974 - use guard notation when acquiring mutex
On Sat, Aug 24, 2024 at 10:29:56PM -0700, Dmitry Torokhov wrote:
> This makes the code more compact and error handling more robust
> by ensuring that mutexes are released in all code paths when control
> leaves critical section.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
> ---
> drivers/input/mouse/bcm5974.c | 35 +++++++++++++----------------------
> 1 file changed, 13 insertions(+), 22 deletions(-)
>
Thanks Dmitry,
Acked-by: Henrik Rydberg <rydberg@...math.org>
Powered by blists - more mailing lists