linux/drivers/hid
Guangshuo Li 05dffa55fd HID: intel-thc-hid: intel-quickspi: fix autosuspend cleanup during teardown
quickspi_probe() calls pm_runtime_use_autosuspend(), but
quickspi_remove() does not call the matching
pm_runtime_dont_use_autosuspend() during teardown.

If the autosuspend delay is set to a negative value while autosuspend
is enabled, the runtime PM core increments usage_count to prevent
runtime suspend. Without calling pm_runtime_dont_use_autosuspend()
during teardown, this reference is not dropped.

The documentation for pm_runtime_use_autosuspend() also notes that it
is important to undo it with pm_runtime_dont_use_autosuspend() at
driver exit time, unless runtime PM was initially enabled with
devm_pm_runtime_enable().

Add the missing pm_runtime_dont_use_autosuspend() call to the driver
remove path.

This issue was found by manual code inspection.

Fixes: 6912aaf3fd ("HID: intel-thc-hid: intel-quickspi: Add PM implementation")
Cc: stable@vger.kernel.org
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Reviewed-by: Even Xu <even.xu@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
2026-08-14 15:13:45 +02:00
..
amd-sfh-hid HID: amd_sfh: clear hid_sensor_hubs entry on probe failure 2026-08-03 19:52:07 +02:00
bpf HID: bpf: Fix hid_bpf_get_data() range check 2026-07-01 09:55:35 +02:00
i2c-hid HID: i2c-hid: goodix: Disable VDD on VDDIO enable failure 2026-08-03 21:19:28 +02:00
intel-ish-hid HID: intel-ish-hid: ignore post-init ENUM_DEVICES from firmware 2026-08-03 21:56:33 +02:00
intel-thc-hid HID: intel-thc-hid: intel-quickspi: fix autosuspend cleanup during teardown 2026-08-14 15:13:45 +02:00
surface-hid HID: intel-thc: fix CONFIG_HID dependency 2025-02-03 10:56:43 +01:00
usbhid HID: pidff: fix OOB write when hid->inputs is empty 2026-08-03 20:27:41 +02:00
.kunitconfig HID: input: map battery system charging 2022-12-20 15:30:35 +01:00
hid-a4tech.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-accutouch.c
hid-alps.c HID: alps: fix NULL pointer dereference in alps_raw_event() 2026-04-09 17:37:39 +02:00
hid-apple.c HID: apple: Add Endorfy Thock TKL Wireless to the non-apple keyboard list 2026-08-03 20:43:53 +02:00
hid-appleir.c HID: appleir: fix UAF on pending key_up_timer in remove() 2026-06-29 10:44:12 +02:00
hid-appletb-bl.c HID: hid-appletb-bl: fix incorrect error message for default brightness 2025-02-18 22:01:54 +01:00
hid-appletb-kbd.c HID: appletb-kbd: run inactivity autodim from workqueues 2026-05-12 17:57:35 +02:00
hid-asus.c HID: asus: support the Zenbook A16 (UX3607OA) keyboard 2026-08-03 21:17:36 +02:00
hid-aureal.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-axff.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-belkin.c HID: hid-belkin: clean up usage of 'driver_data' 2026-06-01 18:28:41 +02:00
hid-betopff.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-bigbenff.c HID: bigbenff: constify fixed up report descriptor 2024-09-05 16:20:56 +02:00
hid-cherry.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-chicony.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-cmedia.c hid-for-linus-2026030601 2026-03-06 10:00:58 -08:00
hid-core.c HID: core: fix number/pointer type confusion on long items 2026-08-03 20:42:47 +02:00
hid-corsair-void.c HID: corsair-void: Check size of status and firmware events before reading them 2026-08-03 19:46:03 +02:00
hid-corsair.c HID: corsair: cancel worker before unregistering LED to fix use-after-free 2026-08-03 21:22:08 +02:00
hid-cougar.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-cp2112.c HID: cp2112: Configure I2C bus speed from firmware 2026-06-10 17:34:39 +02:00
hid-creative-sb0540.c HID: Add HID_CLAIMED_INPUT guards in raw_event callbacks missing them 2026-02-19 18:58:39 +01:00
hid-cypress.c HID: hid-cypress: clean up usage of 'driver_data' 2026-06-01 18:28:41 +02:00
hid-debug.c Merge branch 'for-7.1/core-v2' into for-linus 2026-04-16 21:01:18 +02:00
hid-dr.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-elan.c HID: elan: Add support for ELAN SB974D touchpad 2026-04-28 18:30:02 +02:00
hid-elecom.c HID: elecom: Add support for ELECOM HUGE Plus M-HT1MRBK 2026-01-23 13:53:25 +01:00
hid-elo.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-emsff.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-evision.c HID: evision: Fix Report Descriptor for Evision Wireless Receiver 320f:226f 2025-11-26 17:17:53 +01:00
hid-ezkey.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-ft260.c HID: ft260: fix stack-use-after-return write in I2C read race 2026-08-03 19:17:40 +02:00
hid-gaff.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-gembird.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-generic.c drivers: hid: renegotiate resolution multipliers with device after reset 2025-11-26 17:21:48 +01:00
hid-gfrm.c HID: hid-gfrm: clean up usage of 'driver_data' 2026-06-01 18:28:41 +02:00
hid-glorious.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-goodix-spi.c HID: hid-goodix-spi: validate report size to prevent stack buffer overflow 2026-06-10 18:34:56 +02:00
hid-google-hammer.c HID: google: hammer: stop hardware on devres action failure 2026-05-12 18:01:05 +02:00
hid-google-stadiaff.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-gt683r.c
hid-gyration.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-haptic.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
hid-haptic.h HID: multitouch: add haptic multitouch support 2025-09-15 14:32:55 +02:00
hid-holtek-kbd.c HID: holtek-kbd: constify fixed up report descriptor 2024-09-05 16:20:56 +02:00
hid-holtek-mouse.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-holtekff.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-huawei.c HID: huawei: fix missing hid_is_usb() check 2026-08-03 20:42:08 +02:00
hid-hyperv.c HID: hyperv: add KUnit coverage for device info bounds 2026-08-03 21:09:48 +02:00
hid-icade.c
hid-ids.h HID: quirks: add ALWAYS_POLL quirk for AULA Mini 60 HE Pro Dongle 2026-08-03 21:20:51 +02:00
hid-input-test.c HID: input: Introduce struct hid_battery and refactor battery code 2026-03-19 15:52:45 +01:00
hid-input.c HID: magicmouse: fix battery reporting for Bluetooth Magic Trackpad USB-C 2026-08-03 21:02:55 +02:00
hid-ite.c HID: hid-ite: clean up usage of 'driver_data' 2026-06-01 18:28:41 +02:00
hid-jabra.c
hid-kensington.c HID: Fix spelling mistakes "Kensigton" -> "Kensington" 2024-07-12 18:28:03 +02:00
hid-keytouch.c HID: keytouch: constify fixed up report descriptor 2024-09-05 16:20:56 +02:00
hid-kye.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hid-kysona.c HID: Kysona: Add support for VXE Dragonfly R1 Pro 2026-03-27 15:51:05 +01:00
hid-lcpower.c HID: add more missing MODULE_DESCRIPTION() macros 2024-07-10 09:11:27 +02:00
hid-led.c HID: hid-led: fix maximum brightness for Dream Cheeky 2022-04-21 10:28:49 +02:00
hid-lenovo-go-s.c HID: lenovo-go: drop dead NULL check on to_usb_interface() 2026-05-21 17:12:54 +02:00
hid-lenovo-go.c HID: hid-lenovo-go: cancel cfg_setup work in hid_go_cfg_remove() 2026-06-03 14:18:18 +02:00
hid-lenovo.c HID: lenovo: Use KEY_PERFORMANCE capability for ThinkPad X12 Tab Gen 2 2026-06-10 17:38:39 +02:00
hid-letsketch.c HID: letsketch: fix UAF on inrange_timer at driver unbind 2026-06-29 10:43:23 +02:00
hid-lg-g15.c HID: lg-g15: cancel pending work on remove to fix a use-after-free 2026-06-29 11:18:44 +02:00
hid-lg.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-lg.h
hid-lg2ff.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-lg3ff.c HID: hid-lg3ff: remove unused struct lg3ff_device 2024-02-13 11:43:55 +01:00
hid-lg4ff.c HID: lg4ff: validate report length before fixed offsets 2026-08-03 21:24:06 +02:00
hid-lg4ff.h
hid-lgff.c
hid-logitech-dj.c HID: logitech-dj: Add support for G915 TKL receiver 0xc545 2026-08-03 20:46:07 +02:00
hid-logitech-hidpp.c HID: logitech-hidpp: Remove duplicate ID for the G703 Hero over USB 2026-08-03 20:25:15 +02:00
hid-macally.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-magicmouse.c HID: magicmouse: re-enable multitouch after reset-resume 2026-08-03 21:27:06 +02:00
hid-maltron.c HID: maltron: constify fixed up report descriptor 2024-09-05 16:20:56 +02:00
hid-mcp2200.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
hid-mcp2221.c HID: mcp2221: validate report size in mcp2221_raw_event() 2026-08-03 19:20:55 +02:00
hid-megaworld.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-mf.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-microsoft.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-monterey.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-multitouch.c HID: multitouch: fix out-of-bounds bit access on mt_io_flags 2026-07-01 20:36:12 +02:00
hid-nintendo.c HID: nintendo: fix out-of-bounds read in joycon_ctlr_read_handler() 2026-08-03 19:53:09 +02:00
hid-nti.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-ntrig.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-nvidia-shield.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
hid-ortek.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-oxp.c HID: hid-oxp: Add Vibration Intensity Attribute 2026-05-12 17:55:57 +02:00
hid-penmount.c
hid-petalynx.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-picolcd_backlight.c HID: picoLCD: Use backlight power constants 2024-09-05 10:55:15 +02:00
hid-picolcd_cir.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
hid-picolcd_core.c HID: picolcd: prevent NULL pointer dereference in picolcd_send_and_wait() 2026-06-29 10:46:13 +02:00
hid-picolcd_debugfs.c HID: picolcd: clamp eeprom debugfs read to bytes actually received 2026-08-03 22:01:57 +02:00
hid-picolcd_fb.c - Improved handling of LCD power states and interactions with the fbdev subsystem. 2024-11-22 16:29:57 -08:00
hid-picolcd_lcd.c HID: picoLCD: Replace check_fb in favor of struct fb_info.lcd_dev 2024-09-30 16:49:42 +01:00
hid-picolcd_leds.c
hid-picolcd.h
hid-pl.c HID: pl: eliminate private debug macro 2026-03-12 14:20:57 +01:00
hid-plantronics.c HID: hid-plantronics: Add mic mute mapping and generalize quirks 2025-02-03 11:09:05 +01:00
hid-playstation.c Merge branch 'for-7.2/playstation' into for-linus 2026-06-16 21:50:20 +02:00
hid-primax.c HID: pass the buffer size to hid_report_raw_event 2026-05-12 18:03:37 +02:00
hid-prodikeys.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-pxrc.c HID: pxrc: constify fixed up report descriptor 2024-09-05 16:20:57 +02:00
hid-quirks.c HID: quirks: add ALWAYS_POLL quirk for AULA Mini 60 HE Pro Dongle 2026-08-03 21:20:51 +02:00
hid-rakk.c HID: rakk: add support for Rakk Dasig X side buttons 2026-05-12 17:28:52 +02:00
hid-rapoo.c HID: rapoo: fix missing hid_is_usb() check 2026-08-03 20:42:08 +02:00
hid-razer.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-redragon.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-retrode.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-rmi.c HID: rmi: check report length before trimming sentinel bytes 2026-08-03 19:47:35 +02:00
hid-roccat-arvo.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-arvo.h
hid-roccat-common.c
hid-roccat-common.h sysfs: treewide: switch back to bin_attribute::read()/write() 2025-06-17 10:44:13 +02:00
hid-roccat-isku.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-isku.h
hid-roccat-kone.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-kone.h
hid-roccat-koneplus.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-koneplus.h
hid-roccat-konepure.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-kovaplus.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-kovaplus.h
hid-roccat-lua.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-lua.h
hid-roccat-pyra.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-pyra.h
hid-roccat-ryos.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-savu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-roccat-savu.h
hid-roccat.c Merge branch 'for-7.1/core-v2' into for-linus 2026-04-16 21:01:18 +02:00
hid-saitek.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-samsung.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-semitek.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-sensor-custom.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-sensor-hub.c HID: sensor-hub: Fix out-of-bounds write in sensor_hub_get_feature 2026-08-14 14:55:44 +02:00
hid-sigmamicro.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-sjoy.c HID: hid-sjoy: race between init and usage 2026-05-12 17:23:08 +02:00
hid-sony.c HID: sony: fix UAF of ghl_poke_timer / ghl_urb at driver unbind 2026-08-14 14:36:05 +02:00
hid-speedlink.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-steam.c HID: hid-steam: Use new BTN_GRIP* buttons 2025-08-06 10:02:28 -07:00
hid-steelseries.c HID: steelseries: Fix STEELSERIES_SRWS1 handling in steelseries_remove() 2025-09-12 16:27:35 +02:00
hid-sunplus.c HID: change return type of report_fixup() to const 2024-08-27 16:29:55 +02:00
hid-thrustmaster.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-tivo.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-tmff.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-topre.c HID: topre: Fix n-key rollover on Realforce R3S TKL boards 2025-02-03 22:59:42 +01:00
hid-topseed.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-twinhan.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-u2fzero.c HID: u2fzero: free allocated URB on probe errors 2026-05-21 15:47:17 +02:00
hid-uclogic-core-test.c HID: uclogic: Fix a work->entry not empty bug in __queue_work() 2023-10-25 16:25:47 +02:00
hid-uclogic-core.c HID: uclogic: fix use-after-free of inrange_timer on remove 2026-08-03 22:13:47 +02:00
hid-uclogic-params-test.c HID: uclogic: Fix user-memory-access bug in uclogic_params_ugee_v2_init_event_hooks() 2023-10-25 16:25:47 +02:00
hid-uclogic-params.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-uclogic-params.h HID: uclogic: Add support for the XP-PEN Artist 24 Pro 2025-10-14 12:01:34 +02:00
hid-uclogic-rdesc-test.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hid-uclogic-rdesc.c HID: uclogic: Add support for the XP-PEN Artist 24 Pro 2025-10-14 12:01:34 +02:00
hid-uclogic-rdesc.h HID: uclogic: Add support for the XP-PEN Artist 24 Pro 2025-10-14 12:01:34 +02:00
hid-udraw-ps3.c
hid-universal-pidff.c HID: universal-pidff: stop the device when force-feedback init fails 2026-08-14 14:49:39 +02:00
hid-viewsonic.c HID: viewsonic: constify fixed up report descriptor 2024-09-05 16:20:57 +02:00
hid-vivaldi-common.c HID: pass the buffer size to hid_report_raw_event 2026-05-12 18:03:37 +02:00
hid-vivaldi-common.h HID: vivaldi: convert to use dev_groups 2022-08-25 11:37:21 +02:00
hid-vivaldi.c HID: vivaldi: convert to use dev_groups 2022-08-25 11:37:21 +02:00
hid-vrc2.c HID: vrc2: constify fixed up report descriptor 2024-09-05 16:20:57 +02:00
hid-waltop.c HID: waltop: constify fixed up report descriptor 2024-09-05 16:20:57 +02:00
hid-wiimote-core.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-wiimote-debug.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-wiimote-modules.c HID: wiimote: Fix table layout and whitespace errors 2026-06-01 18:25:08 +02:00
hid-wiimote.h HID: wiimote: Add support for the DJ Hero turntable 2022-11-04 09:57:16 +01:00
hid-winwing.c HID: winwing: Enable rumble effects 2026-04-09 18:09:15 +02:00
hid-xiaomi.c HID: xiaomi: constify fixed up report descriptor 2024-09-05 16:20:57 +02:00
hid-xinmo.c HID: add missing MODULE_DESCRIPTION() macros 2024-06-06 10:52:48 +02:00
hid-zpff.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hid-zydacron.c HID: Add HID_CLAIMED_INPUT guards in raw_event callbacks missing them 2026-02-19 18:58:39 +01:00
hidraw.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig HID: hyperv: add KUnit coverage for device info bounds 2026-08-03 21:09:48 +02:00
Makefile Merge branch 'for-7.2/oxp' into for-linus 2026-06-16 21:50:58 +02:00
uhid.c HID: uhid: convert to hid_safe_input_report() 2026-06-10 20:32:07 +02:00
wacom_sys.c HID: wacom: stop hardware after post-start probe failures 2026-06-10 17:48:55 +02:00
wacom_wac.c HID: wacom: fix out-of-bounds read in wacom_intuos_bt_irq 2026-03-09 19:34:12 +01:00
wacom_wac.h HID: wacom: Fix OOB write in wacom_hid_set_device_mode() 2026-05-28 17:43:16 +02:00
wacom.h HID: wacom: Improve behavior of non-standard LED brightness values 2025-01-09 09:58:28 +01:00