Files
twx-linux/drivers
Wenwen Wang 5c12dadcbe ACPI: custom_method: fix memory leaks
[ Upstream commit 03d1571d95 ]

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: 526b4af47f ("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>
2019-10-05 12:30:25 +02:00
..
…
…
2019-09-21 07:14:22 +02:00
…
…
…
…
…
…
…
2019-10-05 12:30:11 +02:00
…
…
…
2019-05-14 19:19:34 +02:00
…
2019-10-05 12:30:24 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-09-16 08:19:34 +02:00
…
2019-05-31 06:48:15 -07:00
…
…