diff options
| author | Wentao Liang <[email protected]> | 2025-02-12 02:18:49 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2025-02-12 09:52:56 +0000 |
| commit | b9644fbfbcab13da7f8b37bef7c51e5b8407d031 (patch) | |
| tree | eedb7d51d15713f1e628a938aa9a108ec3cdd065 /net/unix/garbage.c | |
| parent | gpiolib: acpi: Add a quirk for Acer Nitro ANV14 (diff) | |
| download | kernel-b9644fbfbcab13da7f8b37bef7c51e5b8407d031.tar.gz kernel-b9644fbfbcab13da7f8b37bef7c51e5b8407d031.zip | |
gpio: stmpe: Check return value of stmpe_reg_read in stmpe_gpio_irq_sync_unlock
The stmpe_reg_read function can fail, but its return value is not checked
in stmpe_gpio_irq_sync_unlock. This can lead to silent failures and
incorrect behavior if the hardware access fails.
This patch adds checks for the return value of stmpe_reg_read. If the
function fails, an error message is logged and the function returns
early to avoid further issues.
Fixes: b888fb6f2a27 ("gpio: stmpe: i2c transfer are forbiden in atomic context")
Cc: [email protected] # 4.16+
Signed-off-by: Wentao Liang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
