summaryrefslogtreecommitdiff
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-16 00:08:27 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 12:27:49 +0200
commit4bda2b79a9d04c8ba31681c66e95877dbb433416 (patch)
treede645983159ae1631be80087a8f62add4aaee274 /drivers/md/raid1.c
parentbf3afb03d4d56a1e29ae71bd7d6ce4a62e757cd4 (diff)
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>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions