]> git.hungrycats.org Git - linux/commit
HID: hid-lenovo-go-s: Add suspend function and gate access under bool.
authorDerek J. Clark <derekjohn.clark@gmail.com>
Mon, 14 Sep 2026 22:52:59 +0000 (15:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2026 17:10:51 +0000 (12:10 -0500)
commitcd4a95557f3c156bf06bb2e2b5667d59343ebdb2
treedf9ad3370b942ce6d59e98bfa7659921e617fcbe
parent5ae8f5f45f43b025df6d35afd04feae9a86b9a4b
HID: hid-lenovo-go-s: Add suspend function and gate access under bool.

commit e69b64d3d75eb10177f75d3d4947e032cb46eeb9 upstream.

Currently a device can suspend while delayed work is pending or
executing. Cancel delayed work if it was pending and restart it if it
hasn't run yet. Gate access to show/store functions behind a bool to
prevent access prior to cfg_setup() being completed.

Fixes: a23f3497bf208c59ad ("HID: hid-lenovo-go-s: Add Lenovo Legion Go S Series HID Driver")
Cc: stable@vger.kernel.org
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-lenovo-go-s.c