# Re: \[PATCH 17/17\] Input: tegra-kbc - use guard notation when acquiring mutex and spinlock

- From: Thierry Reding \<hidden\>
- Date: 2024-08-27 09:08:12 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2024/08/2723301
- Thread: https://ratatoskr.run/linux-input/2024/08/2720813/t.md

```text
On Sat, Aug 24, 2024 at 10:16:21PM GMT, Dmitry Torokhov wrote:
> This makes the code more compact and error handling more robust
> by ensuring that locks are released in all code paths when control
> leaves critical section.
> 
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> ---
>  drivers/input/keyboard/tegra-kbc.c | 45 +++++++++++++-----------------
>  1 file changed, 19 insertions(+), 26 deletions(-)

Acked-by: Thierry Reding <redacted>
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-input/2024/08/2723301/attachment/0) (application/pgp-signature, 833 bytes)
