linux/drivers/platform/x86/intel
Dongliang Mu c4043891a1 platform/x86/intel: vsec: Fix a memory leak in intel_vsec_add_aux
[ Upstream commit da0ba0ccce ]

The first error handling code in intel_vsec_add_aux misses the
deallocation of intel_vsec_dev->resource.

Fix this by adding kfree(intel_vsec_dev->resource) in the error handling
code.

Reviewed-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Dongliang Mu <dzm91@hust.edu.cn>
Link: https://lore.kernel.org/r/20230309040107.534716-4-dzm91@hust.edu.cn
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-04-26 14:28:35 +02:00
..
atomisp2
ifs
int1092
int3472 platform/x86: int3472: Add GPIOs to Surface Go 3 Board data 2023-03-30 12:49:19 +02:00
pmc platform/x86/intel/pmc: Alder Lake PCH slp_s0_residency fix 2023-04-06 12:10:46 +02:00
pmt platform/x86/intel/pmt: Sapphire Rapids PMT errata fix 2022-11-07 12:33:49 +01:00
speed_select_if
telemetry
uncore-frequency platform/x86: intel-uncore-freq: add Emerald Rapids support 2023-01-07 11:11:43 +01:00
wmi platform/x86/intel/wmi: thunderbolt: Use dev_groups callback 2022-09-27 16:01:44 +02:00
bxtwc_tmu.c
chtdc_ti_pwrbtn.c
chtwc_int33fe.c
crystal_cove_charger.c
hid.c platform/x86/intel/hid: Add some ACPI device IDs 2022-11-07 12:33:49 +01:00
int0002_vgpio.c platform/x86: intel_int0002_vgpio: Use generic_handle_irq_safe() 2022-09-19 15:08:38 +02:00
ishtp_eclite.c
Kconfig
Makefile
mrfld_pwrbtn.c
oaktrail.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
punit_ipc.c
rst.c
sdsi.c
smartconnect.c
turbo_max_3.c
vbtn.c
vsec.c platform/x86/intel: vsec: Fix a memory leak in intel_vsec_add_aux 2023-04-26 14:28:35 +02:00
vsec.h