]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: imx_keypad - use guard notation when acquiring mutex
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2024 05:16:10 +0000 (22:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Oct 2024 15:53:14 +0000 (08:53 -0700)
commit2f39a9fc876e965d79a1ee097f06af87607b9fec
treec99acc3881e312e258c46c82cbc72f9066616e05
parent946a48090e71bd7915c159031cf24078a9403754
Input: imx_keypad - use guard notation when acquiring mutex

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.

Link: https://lore.kernel.org/r/20240825051627.2848495-7-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/imx_keypad.c