Input: wacom_w8001 - use reinit_completion() in w8001_command()
w8001->cmd_done is already initialised in w8001_connect() before opening
the serio port, yet w8001_command() calls init_completion() again for
each command.
Calling init_completion() on an active completion reinitialises its
internal waitqueue spinlock, triggering lockdep warnings and racing with
complete() in w8001_interrupt() if a late response to a previously
timed-out command arrives concurrently.
Use reinit_completion() in w8001_command() instead.
Fixes: 3eb1aa43ef5c ("Input: add support for Wacom W8001 penabled serial touchscreen")
Closes: https://sashiko.dev/#/bug/linux-002efaac-c345-4827-8f1c-7b9d9226c713
Cc: stable@vger.kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://patch.msgid.link/20261123183200.3900004-11-lee@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 file changed