summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpi_pad.c
diff options
context:
space:
mode:
authorJulia Cartwright <julia@ni.com>2018-08-03 19:42:33 -0500
committerJulia Cartwright <julia@ni.com>2018-08-03 19:42:33 -0500
commitfc6990cc892dccae554885b2855ff52a1d4a20b6 (patch)
tree42367d7d1feeed32583f0aa4798c28831a9c5b64 /drivers/acpi/acpi_pad.c
parent3bafcb69f5f2f53a97b12e31fe401efea214a9dc (diff)
parent5b90d559d4d5c8fd2127013666014595caa53ae2 (diff)
downloadlinux-rt-fc6990cc892dccae554885b2855ff52a1d4a20b6.tar.gz
Merge tag 'v4.9.104' into v4.9-rt
This is the 4.9.104 stable release
Diffstat (limited to 'drivers/acpi/acpi_pad.c')
-rw-r--r--drivers/acpi/acpi_pad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c
index eb76a4c10dbf..8ce203f84ec4 100644
--- a/drivers/acpi/acpi_pad.c
+++ b/drivers/acpi/acpi_pad.c
@@ -109,6 +109,7 @@ static void round_robin_cpu(unsigned int tsk_index)
cpumask_andnot(tmp, cpu_online_mask, pad_busy_cpus);
if (cpumask_empty(tmp)) {
mutex_unlock(&round_robin_lock);
+ free_cpumask_var(tmp);
return;
}
for_each_cpu(cpu, tmp) {
@@ -126,6 +127,8 @@ static void round_robin_cpu(unsigned int tsk_index)
mutex_unlock(&round_robin_lock);
set_cpus_allowed_ptr(current, cpumask_of(preferred_cpu));
+
+ free_cpumask_var(tmp);
}
static void exit_round_robin(unsigned int tsk_index)