]> www.infradead.org Git - users/hch/misc.git/commit
Input: tegra-kbc - use guard notation when acquiring mutex and spinlock
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2024 05:16:21 +0000 (22:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Sep 2024 05:53:34 +0000 (22:53 -0700)
commit78af00d8937179c051335f0e59db3601edc53ab2
treebd5066334ac5b299ac443e9f581feba91d5387df
parent22df24590f56e2a8d6d2f428448d9bfd2fcf48ee
Input: tegra-kbc - use guard notation when acquiring mutex and spinlock

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.

Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20240825051627.2848495-18-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/tegra-kbc.c