linux/drivers/usb/core
Bixuan Cui 2946f95356 usb: core: hub: Fix PM reference leak in usb_port_resume()
[ Upstream commit 025f97d188 ]

pm_runtime_get_sync will increment pm usage counter even it failed.
thus a pairing decrement is needed.
Fix it by replacing it with pm_runtime_resume_and_get to keep usage
counter balanced.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Link: https://lore.kernel.org/r/20210408130831.56239-1-cuibixuan@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-11 14:47:20 +02:00
..
buffer.c
config.c usb: Use fallthrough pseudo-keyword 2020-07-10 08:55:17 +02:00
devices.c USB: core: remove polling for /sys/kernel/debug/usb/devices 2020-10-02 15:32:46 +02:00
devio.c USB: core: Change %pK for __user pointers to %px 2020-11-20 16:36:31 +01:00
driver.c usbcore: Check both id_table and match() when both available 2020-10-28 13:24:58 +01:00
endpoint.c
file.c
generic.c usbcore: Check both id_table and match() when both available 2020-10-28 13:24:58 +01:00
hcd-pci.c usb: hcd: Fix use after free in usb_hcd_pci_remove() 2020-08-18 12:09:52 +02:00
hcd.c kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq 2021-02-17 11:02:30 +01:00
hub.c usb: core: hub: Fix PM reference leak in usb_port_resume() 2021-05-11 14:47:20 +02:00
hub.h USB: core: Use the correct style for SPDX License Identifier 2020-04-16 14:32:45 +02:00
Kconfig USB: hub: Add Kconfig option to reduce number of port initialization retries 2020-10-02 11:29:02 +02:00
ledtrig-usbport.c usb: core: ledtrig-usbport: Demote obvious misuse of kerneldoc to standard comment blocks 2020-07-09 16:46:57 +02:00
Makefile
message.c dma-mapping updates for 5.10 2020-10-15 14:43:29 -07:00
notify.c
of.c drivers: usb: Fix trivial spelling 2020-06-18 10:13:16 +02:00
otg_productlist.h USB: OTG: rename product list of devices 2020-06-19 08:58:55 +02:00
phy.c
phy.h
port.c usb: core: port: do error out if usb_autopm_get_interface() fails 2020-03-04 10:58:16 +01:00
quirks.c USB: Add reset-resume quirk for WD19's Realtek Hub 2021-05-07 11:04:33 +02:00
sysfs.c usb: core: fix slab-out-of-bounds Read in read_descriptors 2020-09-04 16:41:22 +02:00
urb.c USB: move snd_usb_pipe_sanity_check into the USB core 2020-09-16 11:02:23 +02:00
usb-acpi.c usb: core: Use ACPI_SUCCESS() at appropriate places 2020-02-19 11:08:52 +01:00
usb.c drm: Use USB controller's DMA mask when importing dmabufs 2021-03-17 17:06:19 +01:00
usb.h usbcore: Check both id_table and match() when both available 2020-10-28 13:24:58 +01:00