cpufreq: CPPC: put ACPI table after using it
authorHanjun Guo <guohanjun@huawei.com>
Tue, 24 Dec 2019 01:56:30 +0000 (09:56 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 29 Dec 2019 21:17:26 +0000 (22:17 +0100)
Put the ACPI table to release the table mapping after using it
successfully.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cppc_cpufreq.c

index d0ca300..a06777c 100644 (file)
@@ -98,6 +98,8 @@ static void cppc_check_hisi_workaround(void)
                        break;
                }
        }
+
+       acpi_put_table(tbl);
 }
 
 /* Callback function used to retrieve the max frequency from DMI */