Re: [PATCH 10/10] Input: wacom_w8001 - use reinit_completion() in w8001_command()
From: Dmitry Torokhov
Date: Mon Nov 23 2026 - 15:26:39 EST
On Mon, Nov 23, 2026 at 06:31:16PM +0000, Lee Jones wrote:
> 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@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
Applied, thank you.
--
Dmitry