This is a note to let you know that I've just added the patch titled Input: fix open count when closing inhibited device to the 6.3-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: input-fix-open-count-when-closing-inhibited-device.patch and it can be found in the queue-6.3 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 978134c4b192ed04ecf699be3e1b4d23b5d20457 Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> Date: Fri, 5 May 2023 11:16:07 -0700 Subject: Input: fix open count when closing inhibited device From: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> commit 978134c4b192ed04ecf699be3e1b4d23b5d20457 upstream. Because the kernel increments device's open count in input_open_device() even if device is inhibited, the counter should always be decremented in input_close_device() to keep it balanced. Fixes: a181616487db ("Input: Add "inhibited" property") Reviewed-by: Peter Hutterer <peter.hutterer@xxxxxxxxx> Link: https://lore.kernel.org/r/ZFFz0xAdPNSL3PT7@xxxxxxxxxx Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -703,7 +703,7 @@ void input_close_device(struct input_han __input_release_device(handle); - if (!dev->inhibited && !--dev->users) { + if (!--dev->users && !dev->inhibited) { if (dev->poller) input_dev_poller_stop(dev->poller); if (dev->close) Patches currently in stable-queue which might be from dmitry.torokhov@xxxxxxxxx are queue-6.3/input-fix-open-count-when-closing-inhibited-device.patch queue-6.3/input-psmouse-fix-oob-access-in-elantech-protocol.patch queue-6.3/input-xpad-delete-a-razer-deathadder-mouse-vid-pid-entry.patch queue-6.3/input-cyttsp5-fix-array-length.patch