android_kernel_samsung_a7y1.../drivers/acpi
Wenwen Wang 89a849e0ec ACPI: custom_method: fix memory leaks
[ Upstream commit 03d1571d9513369c17e6848476763ebbd10ec2cb ]

In cm_write(), 'buf' is allocated through kzalloc(). In the following
execution, if an error occurs, 'buf' is not deallocated, leading to memory
leaks. To fix this issue, free 'buf' before returning the error.

Fixes: 526b4af47f44 ("ACPI: Split out custom_method functionality into an own driver")
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 07:38:59 +02:00
..
acpica A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
apei A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pmic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ac.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_apd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_cmos_rtc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_extlog.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_ipmi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_lpat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_lpss.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_memhotplug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_pad.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_platform.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_pnp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_processor.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acpi_video.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
battery.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
battery.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bgrt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
blacklist.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bus.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
button.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cm_sbs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
container.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cppc_acpi.c ACPI / CPPC: do not require the _PSD method 2020-04-07 07:38:54 +02:00
custom_method.c ACPI: custom_method: fix memory leaks 2020-04-07 07:38:59 +02:00
debugfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
device_pm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
device_sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dock.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ec_sys.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ec.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fan.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gsi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hed.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
int340x_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
internal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ioapic.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nfit.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nfit.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
numa.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nvs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
osl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci_irq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci_link.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci_root.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci_slot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
power.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_driver.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_idle.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_pdc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_perflib.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
processor_throttling.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
property.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reboot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
resource.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sbs.c ACPI / SBS: Fix GPE storm on recent MacBookPro's 2020-04-06 15:20:26 +02:00
sbshc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sbshc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
scan.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sleep.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sleep.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tables.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
thermal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
utils.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
video_detect.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wakeup.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30