mirror-linux/drivers/platform/x86
Miaoqian Lin 3944162821 platform/x86/amd: Fix refcount leak in amd_pmc_probe
[ Upstream commit ccb32e2be1 ]

pci_get_domain_bus_and_slot() takes reference, the caller should release
the reference by calling pci_dev_put() after use. Call pci_dev_put() in
the error path to fix this.

Fixes: 3d7d407dfb ("platform/x86: amd-pmc: Add support for AMD Spill to DRAM STB feature")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20221229072534.1381432-1-linmq006@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:58:32 +01:00
..
amd platform/x86/amd: Fix refcount leak in amd_pmc_probe 2023-01-18 11:58:32 +01:00
dell platform/x86: dell-privacy: Fix SW_CAMERA_LENS_COVER reporting 2023-01-18 11:58:16 +01:00
intel platform/x86: int3472/discrete: Ensure the clk/power enable pins are in output mode 2023-01-18 11:58:15 +01:00
Kconfig platform/x86: Battery charge mode in toshiba_acpi (sysfs) 2022-09-09 21:58:16 +02:00
Makefile platform/x86: p2sb: Move out of X86_PLATFORM_DEVICES dependency 2022-08-01 16:26:38 +02:00
acer-wireless.c
acer-wmi.c platform/x86: acer-wmi: Enable SW_TABLET_MODE on Switch V 10 (SW5-017) 2022-11-15 17:16:40 +01:00
acerhdf.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
adv_swbutton.c
amilo-rfkill.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
apple-gmux.c platform/x86: apple-gmux: Stop calling acpi/video.h functions 2022-09-03 12:17:27 +02:00
asus-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
asus-nb-wmi.c platform/x86: asus-wmi: Add support for ROG X16 tablet mode 2022-10-24 11:24:08 +02:00
asus-tf103c-dock.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
asus-wireless.c
asus-wmi.c platform/x86: asus-wmi: Don't load fan curves without fan 2023-01-18 11:58:16 +01:00
asus-wmi.h Immutable backlight-detect-refactor branch between acpi, drm-* and pdx86 2022-09-05 11:01:56 +02:00
barco-p50-gpio.c platform/x86: barco-p50-gpio: Add check for platform_driver_register 2022-06-10 21:59:08 +02:00
classmate-laptop.c
compal-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
dual_accel_detect.h
eeepc-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
eeepc-wmi.c platform/x86: asus-wmi: Move acpi_backlight=vendor quirks to ACPI video_detect.c 2022-09-03 12:17:27 +02:00
firmware_attributes_class.c
firmware_attributes_class.h
fujitsu-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
fujitsu-tablet.c
gigabyte-wmi.c platform/x86: gigabyte-wmi: add support for B660I AORUS PRO DDR4 2022-07-10 17:41:05 +02:00
gpd-pocket-fan.c
hdaps.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
hp-wmi.c platform/x86: hp-wmi: Ignore Smart Experience App event 2022-11-16 08:43:36 +01:00
hp_accel.c
huawei-wmi.c platform/x86: huawei-wmi: fix return value calculation 2022-12-31 13:31:56 +01:00
ibm_rtl.c
ideapad-laptop.c platform/x86: ideapad-laptop: Add Legion 5 15ARH05 DMI id to set_fn_lock_led_list[] 2023-01-18 11:58:18 +01:00
intel_ips.c
intel_ips.h
intel_scu_ipc.c platform/x86: intel_scu_ipc: fix possible name leak in __intel_scu_ipc_register() 2022-12-31 13:32:00 +01:00
intel_scu_ipcutil.c
intel_scu_pcidrv.c
intel_scu_pltdrv.c
intel_scu_wdt.c
lenovo-yogabook-wmi.c
lg-laptop.c
meraki-mx100.c
mlx-platform.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
msi-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
msi-wmi.c
mxm-wmi.c platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]() 2022-12-31 13:32:00 +01:00
nvidia-wmi-ec-backlight.c platform/x86: nvidia-wmi-ec-backlight: Use acpi_video_get_backlight_type() 2022-09-03 12:17:26 +02:00
p2sb.c platform/x86: p2sb: Don't fail if unknown CPU is found 2022-11-07 12:33:49 +01:00
panasonic-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
pcengines-apuv2.c
peaq-wmi.c
pmc_atom.c platform/x86: pmc_atom: Amend comment style and grammar 2022-08-25 16:23:52 +02:00
samsung-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
samsung-q10.c
serial-multi-instantiate.c sound fixes for 6.0-rc2 2022-08-19 09:46:11 -07:00
simatic-ipc.c platform/x86: simatic-ipc: add new model 427G 2022-09-01 16:15:03 +02:00
sony-laptop.c platform/x86: sony-laptop: Don't turn off 0x153 keyboard backlight during probe 2023-01-18 11:58:18 +01:00
system76_acpi.c platform/x86: system76_acpi: Use dev_get_drvdata 2022-06-12 14:41:22 +02:00
tc1100-wmi.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
think-lmi.c
think-lmi.h
thinkpad_acpi.c platform/x86: thinkpad_acpi: Fix profile mode display in AMT mode 2023-01-18 11:58:15 +01:00
topstar-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
toshiba-wmi.c
toshiba_acpi.c platform/x86: toshiba_acpi: change turn_on_panel_on_resume to static 2022-09-22 15:54:23 +02:00
toshiba_bluetooth.c
toshiba_haps.c
touchscreen_dmi.c platform/x86: touchscreen_dmi: Add info for the RCA Cambio W101 v2 2-in-1 2022-11-07 12:33:49 +01:00
uv_sysfs.c
winmate-fm07-keys.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
wireless-hotkey.c
wmi-bmof.c
wmi.c platform/x86: wmi: Drop forward declaration of static functions 2022-09-19 14:47:34 +02:00
x86-android-tablets.c platform/x86: x86-android-tablets: Add Advantech MICA-071 extra button 2023-01-07 11:11:43 +01:00
xiaomi-wmi.c
xo1-rfkill.c
xo15-ebook.c