]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
Input: synaptics-rmi4 - fix a locking bug in an error path
authorBart Van Assche <bvanassche@acm.org>
Mon, 23 Feb 2026 23:05:15 +0000 (15:05 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Feb 2026 23:07:58 +0000 (15:07 -0800)
commit7adaaee5edd35a423ae199c41b86bd1ed60ed483
treef06e319bd3b72a68ea0f805193cd5fbb241dd359
parent5839419cffc7788a356428d321e3ec18055c0286
Input: synaptics-rmi4 - fix a locking bug in an error path

Lock f54->data_mutex when entering the function statement since jumping
to the 'error' label when checking report_size fails causes that mutex
to be unlocked.

This bug has been detected by the Clang thread-safety checker.

Fixes: 3a762dbd5347 ("[media] Input: synaptics-rmi4 - add support for F54 diagnostics")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260223215118.2154194-16-bvanassche@acm.org
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f54.c